News is stored in the MySQL database from datetimepublication.
At any time, the user can add a new one to the table with the publication date of publication.
How to use Celery for a data list table and check if it's time to publish data?
To publish the data, another process responds (Python script). Therefore, Celery should call this script for each row of the MySQL table according to datetime.
How to do it with celery?
Another way, I think, is to create a queue with dateand idpublish, and then directly add data from a user form in that queue. Therefore, sholud will be a Celery process that monitors the queue for further tasks by date.
Celery provides documentation for periodic tasks and scheduled tasks, but there are no explanations or examples of how to use them.
Sorry if the question is trivial, I'm new to Piedon Celery.
source
share