Skip to content

Commit 298c4f3

Browse files
authored
Update celery.py (#948)
Getting a TypeError: _celery_resume_process() missing 2 required keyword-only arguments: 'user_inputs' and 'user'. Scenario is when using callback in combination with Celery. When using threadpool execution context the issue is not seen as there a default (None) is set.
1 parent ebbeb34 commit 298c4f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

orchestrator/services/celery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ def _celery_start_process(
7272
def _celery_resume_process(
7373
process: ProcessTable,
7474
*,
75-
user_inputs: list[State] | None,
76-
user: str | None,
75+
user_inputs: list[State] | None = None,
76+
user: str | None = None,
7777
**kwargs: Any,
7878
) -> UUID:
7979
"""Client side call of Celery."""

0 commit comments

Comments
 (0)