django-q2
django-q2 copied to clipboard
qcluster --run-once doesn't run scheduled tasks
Hi, It seems that qcluster --run-once only runs queued tasks, but not those that have been scheduled to run since the last time the cluster ran. I need to run a particular task on a laptop every day if possible, but the laptop is not necessarily switched on at the same time every day, and I'd like to avoid long-running daemons on it; I was hoping that a scheduled task would be picked up when I run the cluster every hour for instance, but the cluster starts and stops right away. My workaround for now is to schedule a task whose role is to enqueue (with async_task()) the actual job to be done, but it means that there may be several queued tasks waiting for the next time the laptop picks them up. A scheduled task would be run just once. Is that something intentional? If not, can it be fixed? Thanks :-)