mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-27 07:55:56 +03:00
[GH-ISSUE #527] Dynamic periodic task sync interval #1262
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#1262
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 @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.
@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
@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.
@tinnkai commented on GitHub (Aug 26, 2022):
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