Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store extended Celery task attributes in backend #3855

Merged

Conversation

danihodovic
Copy link
Contributor

Enables extended task result attributes (name, args, kwargs, worker,
retries, queue, delivery_info) to be written to backend.

https://docs.celeryq.dev/en/stable/userguide/configuration.html#result-extended

Without this the information in the result backend is rather opaque. You
can only see the task_id's of tasks that have executed. With the setting
enabled you can see the task name, queue and other metadata.

To demonstrate - the top task is with CELERY_RESULT_EXTENDED enabled
while the rest have the value disabled.

image

> Enables extended task result attributes (name, args, kwargs, worker,
> retries, queue, delivery_info) to be written to backend.

https://docs.celeryq.dev/en/stable/userguide/configuration.html#result-extended

Without this the information in the result backend is rather opaque. You
can only see the task_id's of tasks that have executed. With the setting
enabled you can see the task name, queue and other metadata.
@danihodovic
Copy link
Contributor Author

Ping @browniebroke

@browniebroke
Copy link
Member

That screenshot is when using a different result backend than the one we use by default, isn't it?

It doesn't seem to cause any issues with Redis as far as I can tell.

@browniebroke browniebroke merged commit ca82618 into cookiecutter:master Nov 6, 2022
@browniebroke
Copy link
Member

Thanks!

@danihodovic danihodovic deleted the add-celery-result-extended branch November 6, 2022 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants