Koed00 / django-q

A multiprocessing distributed task queue for Django
https://django-q.readthedocs.org
MIT License
1.83k stars 285 forks source link

How to stop a scheduled task instead of deleting it #720

Closed 871690991 closed 1 year ago

871690991 commented 1 year ago

I performed the following _schedule(func="djangoqtest.demo.demo_task",audit_id="128jjj123",cc_users="xu.jx",username="xxx",hook='123132123',cron="/1 *",name="test2_job",scheduletype=Schedule.CRON)

How to stop a scheduled task instead of deleting it

871690991 commented 1 year ago

I found it,set (repeats = 0 ) to stop the task, and set (repeats = -1) to open the task