Skip to content

Commit 3a60d03

Browse files
committed
Merge PR OCA#892 into 16.0
Signed-off-by sbidoul
2 parents 9f5bf99 + b979560 commit 3a60d03

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

queue_job/controllers/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import time
88
import traceback
99
from io import StringIO
10+
from typing import Optional
1011

1112
from psycopg2 import OperationalError, errorcodes
1213
from werkzeug.exceptions import BadRequest, Forbidden
@@ -27,7 +28,7 @@
2728

2829
class RunJobController(http.Controller):
2930
@classmethod
30-
def _acquire_job(cls, env: api.Environment, job_uuid: str) -> Job | None:
31+
def _acquire_job(cls, env: api.Environment, job_uuid: str) -> Optional[Job]:
3132
"""Acquire a job for execution.
3233
3334
- make sure it is in ENQUEUED state

0 commit comments

Comments
 (0)