How can I stop periodic task?
See original GitHub issueI can start periodic task by running
myfun(repeat=60)
but what is the right way to stop it?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
How do we completed stop tasks in celery periodic_task?
One possible way is to store the tasks in the database and add remove tasks dynamically. You can use database backed celery beat...
Read more >Stopping a periodic task? - Klei Entertainment Forums
When you try to cancel it, make sure "inst" is still the very same object and the task is still saved in inst.task....
Read more >How to Disable Scheduled Tasks in Windows 10 - MakeUseOf
To disable a scheduled task, launch Command Prompt as administrator and type schtasks /Change /TN "<Task Folder Path>\<Task Name>" /Disable.
Read more >How to dynamically add / remove periodic tasks
Just replying since I found a solution for this. When you're deleting a Periodic Task, first set it's enabled property to false FIRST....
Read more >Disable-ScheduledTask - Microsoft Learn
Examples · Example 1: Disable a scheduled task · Example 2: Disable all scheduled tasks in a folder.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
for anyone who still got problem with this to stop periodic task from running, just delete it from database with :
poof, gone! why using task_hash? : because id changed every time it repeats, but task_hash does not plus with this no need to restart
manage.py process_tasks
processHi @chapkovski Periodic tasks can best stopped by deleted them from the Database.