Based on get id for current task.
I call chain like:
chain = (nice_task.s(a=1) |
task2.s(a=2)).apply_async()
Task defined as:
@celery.task(bind=True)
def nice_task(self, a):
print a
print self.request.id # None
return a
How to get id of task inside chain?
I tried to turn on / off CELERY_ALWAYS_EAGER
- with no effect.
UPD Also self.request
has empty context
.