I use Django with Celery + RabbitMQ to create conversion tasks for videos uploaded by users. Now I know how to request celery in order to get status. My question is where to save the task_id associated with each task, should I save it in models or in the django cache?
I know that similar questions have been asked in the past, for example, https://stackoverflow.com/a/167169/2/16/16/12/ , but there is no final answer yet. I know that the answer to this depends on the preferences of the developers, but if someone can bring up the pros and cons of different approaches, it will be great.
Just to re-iterate, I will use task_id to run AJAX requests from the front-end each time to find out if the video conversion is complete or not.
source share