Search code examples
python-3.xcelerycelery-task

Only store results of "failed" celery tasks (Celery Result backend)


Is it possible to only save celery results on specific parameters, such as a failed task?

I have been looking but the only way I could manage was to go back through the celery results backend and parse through the data outside of celery.

Is there a better way?

(Note: I am using mongodb as a celery result backend.)


Solution

  • Not that I know of (do not take my words for granted). If you specify result backend, it will be used for all tasks both successful and unsuccessful that do not ignore results.