Skip to content

Commit cfc135a

Browse files
author
Ask Solem
committed
celery.execute.apply: Make sure kwargs["task_id"] is set.
1 parent 9661e4f commit cfc135a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

celery/execute/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def apply(task, args, kwargs, **options):
167167
"""
168168
args = args or []
169169
kwargs = kwargs or {}
170-
task_id = options.get("task_id", gen_unique_id())
170+
task_id = options.get("task_id") or gen_unique_id()
171171
retries = options.get("retries", 0)
172172
throw = options.pop("throw", conf.EAGER_PROPAGATES_EXCEPTIONS)
173173

0 commit comments

Comments
 (0)