mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #183] [FEATURE REQUEST] Recurring scheduled tasks using a CRON schedule #1074
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#1074
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oliverproud on GitHub (Jul 16, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/183
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
I need a task to be enqueued at the same time each day.
Describe the solution you'd like
To be able to schedule a task to be enqueued using a CRON schedule. This task will then be enqueued repeatedly, based on the CRON schedule. E.g. Task to send an email is enqueued at midnight, everyday.
Describe alternatives you've considered
I have tried using GoCraft/Work and their periodic enqueuer but I had issues with using the library and getting the UI to work.
Additional context
The enqueueAt function is almost perfect but I just need to be able to have that enqueue happen at the same time each day.
Also, thank you for the library and the extensive documentation. It has been really great to use!
Thanks
@hibiken commented on GitHub (Jul 17, 2020):
@oliverproud Thank you for opening this issue!
I see a lot of similar libraries implement this feature.
I'll look into this over the weekend and will update this thread with an initial proposal.
@oliverproud commented on GitHub (Jul 17, 2020):
@hibiken That's great, thank you for your reply!
@hibiken commented on GitHub (Jul 20, 2020):
Hi @oliverproud , here's my initial idea on what the API would look like, let me know if you have any thoughts or feedback!
I'm still trying to figure out the semantics around duplicate task. For example, if there are multiple server running the same cron configuration, should we deduplicate?
Initial Proposal
Introduce a new
Crontype to register periodic tasks.This cron scheduler can be run as part of Asynq server.
Open Questions
@oliverproud commented on GitHub (Jul 20, 2020):
Hi @hibiken, proposal looks great to me. In regards to your open question, that is outside my area of expertise so I'm going to have to defer to you.
Thanks for your response!
ClearServerStateto cleanuo worker which were not un-registed successfully when shutdown. #1528ClearServerStateto cleanuo worker which were not un-registed successfully when shutdown. #2537