I want to use django celery as a bot of sorts that continuously loops through objects and gets data for them.
For example, lets say I have a huge database of movies. I want to loop through all the movies, one by one, and get their metadata. If a user said they wanted a particular movie metadata refreshed, I want to push this movie from whatever position on the queue to the front, then bring it back to the end of the queue once it has finished getting the metadata.
A lot of sites showed me how to schedule tasks that ran on specific time intervals, but I need the jobs to go one after another, and the metadata download time is going to vary between movies (I have a timeout if it's taking too long).
Does anybody know how I can implement something like this? Thank you!