[GH-ISSUE #527] Dynamic periodic task sync interval #1262

Open
opened 2026-03-07 22:08:05 +03:00 by kerem · 3 comments
Owner

Originally created by @tinnkai on GitHub (Aug 8, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/527

Originally assigned to: @hibiken on GitHub.

Hello! Ken Hibino

Dynamic periodic task sync interval .
Can you control whether the program needs to be loaded when it runs? There may be too many tasks, and the tasks will not change frequently. Frequent loading may be unfriendly to the program.

Originally created by @tinnkai on GitHub (Aug 8, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/527 Originally assigned to: @hibiken on GitHub. Hello! Ken Hibino Dynamic periodic task sync interval . Can you control whether the program needs to be loaded when it runs? There may be too many tasks, and the tasks will not change frequently. Frequent loading may be unfriendly to the program.
Author
Owner

@SaltySooda commented on GitHub (Aug 18, 2022):

there are 3 interval you can control.
srv := asynq.NewServer( asynq.RedisClientOpt{Addr: redisAddr}, asynq.Config{ HealthCheckInterval: 0, DelayedTaskCheckInterval: 0, GroupGracePeriod: 0, }, )
if you expect more,I can make a PR.
such as:
syncer
heartbeater
recoverer
janitor

<!-- gh-comment-id:1219279845 --> @SaltySooda commented on GitHub (Aug 18, 2022): there are 3 interval you can control. ` srv := asynq.NewServer( asynq.RedisClientOpt{Addr: redisAddr}, asynq.Config{ HealthCheckInterval: 0, DelayedTaskCheckInterval: 0, GroupGracePeriod: 0, }, )` if you expect more,I can make a PR. such as: syncer heartbeater recoverer janitor
Author
Owner

@Lilihx commented on GitHub (Aug 19, 2022):

I expect heartbeater.
Because in breakpoint debug mod, the lease expiration of the hearbeater will cancel the context.

<!-- gh-comment-id:1220556799 --> @Lilihx commented on GitHub (Aug 19, 2022): > I expect heartbeater. Because in breakpoint debug mod, the lease expiration of the hearbeater will cancel the context.
Author
Owner

@tinnkai commented on GitHub (Aug 26, 2022):

there are 3 interval you can control. srv := asynq.NewServer( asynq.RedisClientOpt{Addr: redisAddr}, asynq.Config{ HealthCheckInterval: 0, DelayedTaskCheckInterval: 0, GroupGracePeriod: 0, }, ) if you expect more,I can make a PR. such as: syncer heartbeater recoverer janitor

My question is dynamic periodic task
Cronspec can only be synchronized at a fixed time
If there are too many cronspecs and the modification frequency is not high, can you add a parameter to control whether it needs to be reloaded? If not, get the cronspecs data in memory

<!-- gh-comment-id:1228201993 --> @tinnkai commented on GitHub (Aug 26, 2022): > there are 3 interval you can control. ` srv := asynq.NewServer( asynq.RedisClientOpt{Addr: redisAddr}, asynq.Config{ HealthCheckInterval: 0, DelayedTaskCheckInterval: 0, GroupGracePeriod: 0, }, )` if you expect more,I can make a PR. such as: syncer heartbeater recoverer janitor My question is dynamic periodic task Cronspec can only be synchronized at a fixed time If there are too many cronspecs and the modification frequency is not high, can you add a parameter to control whether it needs to be reloaded? If not, get the cronspecs data in memory
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1262
No description provided.