how to store arguments in SQL alchemy backed which are passed to celery task in flask app

Viewed 574

i am working on flask app which initiate large no of tasks in background using celery , and i am using Redis as message broker queue and SQL alchemy as celery back-end.

By default, i can see "Results" are stored in back-end in "results" column for celery_taskmeta table , but i would like to store args as well which was passed to task .

And i would like to retrieve them as well in future . Is there any way i can store them in my current back-end.

Thanks

2 Answers

result_backend=True does not work when loading config using app.config_from_object().

You have to manually update config using app.conf.update(result_backend=True).

Related