Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

定时任务增加随机偏移参数 #26

Closed
zzliux opened this issue Apr 30, 2024 · 0 comments
Closed

定时任务增加随机偏移参数 #26

zzliux opened this issue Apr 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@zzliux
Copy link
Owner

zzliux commented Apr 30, 2024

避免每次定时任务都是准点执行,预计在定时任务的job中增加参数:randomOffsetTime: string

如设定值为-600000,600000,在计算下次执行时间时会从该区间内生成一个随机数,随机数以毫秒加给下次执行时间

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant