mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #961] Support for High-Frequency Millisecond-Level Scheduled Tasks #2491
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#2491
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 @missish on GitHub (Nov 8, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/961
Originally assigned to: @hibiken, @kamikazechaser on GitHub.
Hi asynq team,
Thank you for the fantastic work on asynq. I’m a big fan of this library, and it has been very helpful in my projects. However, there’s one feature that I believe would significantly enhance its utility: support for high-frequency, millisecond-level scheduled tasks.
Feature Request:
I’d like to request support for scheduling tasks with sub-second intervals, specifically on the millisecond level. Currently, it appears that asynq doesn’t support intervals shorter than one second. Adding this capability would make asynq a great fit for applications that require high-frequency processing.
For reference, a library like gocron has implemented this with a feature called DurationJob, which allows scheduling tasks with any duration, including millisecond-level intervals (see documentation). A similar implementation in asynq would be a game-changer for use cases requiring more precise, frequent scheduling.
Example Use Cases:
Real-time data processing pipelines
High-frequency health checks or pings
Rapid polling mechanisms for APIs or data sources
Proposed Solution:
One way to implement this might be to enhance the Scheduler to accept durations specified in milliseconds, or add a new scheduling method that can handle sub-second intervals.
Thank you for considering this feature request! Please let me know if I can provide any additional details or if there’s any way I can contribute.
@kamikazechaser commented on GitHub (Nov 13, 2024):
This library uses robfig/cron/v3 which doesn't support sub-second cron spec. It will be impossible to add without refactoring the entire scheduler.