3

Is it possible to get the arguments used to call a particular failed celery task given the task's ID? I am using MongoDB as the broker and using the django-celery package.

I know that you can get the result pretty easily but wanted to know if you can do the same with the arguments used to call that task.

Thanks

1 Answer 1

4

I managed to solve this problem by implementing a custom on_failure handler for my task as specified here:

http://docs.celeryproject.org/en/latest/userguide/tasks.html#handlers

I got the args info along with the error and saved it to a database.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.