Task.request
is not celery.worker.request.Request
(during task_prerun
)
#103
Labels
bug
Something isn't working
Task.request
is typed like belowcelery-types/celery-stubs/app/task.pyi
Lines 235 to 236 in af89436
With the following
task_prerun
receiverI'm getting at traceback like
Celery documents "Sender is the task object being executed"
Ref: https://docs.celeryq.dev/en/stable/userguide/signals.html#task-prerun
I thought
task.request
was aRequest
object, but at least in the case of a receiver ontask_prerun
it's rather an instance ofcelery.app.task.Context
.The text was updated successfully, but these errors were encountered: