Closed csirmazbendeguz closed 11 months ago
I'm trying to develop a monitoring app for our Celery tasks. Maybe there's an alternative way to do that? Cheers
https://github.com/celery/django-celery-results/issues/289 probably related
Had the same problem, its because of the option CELERY_RESULT_EXTENDED
. This needs to be True
. It is mentioned in the getting started https://django-celery-results.readthedocs.io/en/latest/getting_started.html. Only the readme is linked to the celery docs where this is not mentioned.
So its easy to miss, also in the docs its not clear that you need this for basic information like task name.
This is the exact reason. Setting this will fix this issue.
Had the same problem, its because of the option
CELERY_RESULT_EXTENDED
. This needs to beTrue
. It is mentioned in the getting started https://django-celery-results.readthedocs.io/en/latest/getting_started.html. Only the readme is linked to the celery docs where this is not mentioned.
I literally said The task_name is always null, even if extended task results are enabled.
in the first sentence.
The issue was with the eager mode.
can you help to find out the root cause of the issue?
@csirmazbendeguz @auvipy did you set CELERY_RESULT_EXTENDED?
The task_name is always null, even if extended task results are enabled.
I checked the code and the
request
variable doesn't have atask
field. I couldn't find where this field was supposed to be added in the Celery source code either.Not sure if this is a bug or I'm missing something obvious.
https://github.com/celery/django-celery-results/blob/e840938d4bbf24771ecb6df43f196d7a01d50643/django_celery_results/backends/database.py#L95
My package versions are:
I also tried to install other versions of
django-celery-results
, but all of them tries to get the task name from thetask
field which is never set.