Closed geniass closed 6 years ago
For my use case, I need to call celery tasks by name rather than importing the actual task object.
It seems like this never calls the apply_async method, so the request ID is never set in the headers.
apply_async
I believe a better way to set the headers is using Celery's signal system. Specifically the before_task_publish hook.
before_task_publish
I will open a pull request shortly.
I think this was addressed by #34
For my use case, I need to call celery tasks by name rather than importing the actual task object.
It seems like this never calls the
apply_async
method, so the request ID is never set in the headers.I believe a better way to set the headers is using Celery's signal system. Specifically the
before_task_publish
hook.I will open a pull request shortly.