Issue in db_periodic_task()
See original GitHub issue@db_periodic_task(crontab(minute='0', hour='15'))
def notify_user():
# do something
I was trying to run a periodic task that runs at 3 pm every day. I used the above sample code to do this. The task executed at 3 pm, now the issue is that after executing one time this task was running continuously every minute while I just need to execute this task at 3 pm every day.
Is there something wrong with my crontab config or is this the issue with Huey
.
Also, if I want to run a task at 9 am and 3 pm every day, what should be the crontab config.
Thanks.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
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 FreeTop 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
Top GitHub Comments
Okay, will remember this from next time. 😅
I think that something must be wrong in either a) your explanation of the issue, b) discrepancies between your actual code and what you pasted.
I ran a very minimal test django startproject / django startapp and a placeholder db periodic task that specifies a particular minute and hour, and it’s working fine:
After executing once, the task did not run again while I observed.
Also, I would be very surprised to find something so fundamental in huey to be broken.