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

定时任务misfire_grace_time参数问题? #13

Open
soundmemories opened this issue Oct 16, 2024 · 0 comments
Open

定时任务misfire_grace_time参数问题? #13

soundmemories opened this issue Oct 16, 2024 · 0 comments

Comments

@soundmemories
Copy link

soundmemories commented Oct 16, 2024

定时任务中scheduler.add_job(misfire_grace_time=1000000000000 if job_info.misfire_policy == '3' else None),对于misfire_policy=='3'的情况描述是”放弃执行“,misfire_grace_time是指任务即使延迟n秒内,仍可继续执行,按照放弃执行逻辑是不是应该把1000000000000改为1misfire_grace_time要求是正数,不能设置为0
image
image

@soundmemories soundmemories changed the title 定时任务错误策略逻辑问题? 定时任务misfire_grace_time参数问题? Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant