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

job被错误启动问题 #3513

Open
zhangbing-bing opened this issue Jul 20, 2024 · 0 comments
Open

job被错误启动问题 #3513

zhangbing-bing opened this issue Jul 20, 2024 · 0 comments

Comments

@zhangbing-bing
Copy link

Please answer some questions before submitting your issue. Thanks!

版本V 2.4.2
服务端在执行调度器的时候,先将任务status为1的满足时间条件的定时任务info读取出,最终也会更新xxl_job_info的status状态。请问在这个中间时刻,我发出了关闭定时任务的请求,调度器后续的更新操作岂不是又将xxl_job_info的status改为正常运行状态。

UPDATE xxl_job_info
SET
trigger_last_time = #{triggerLastTime},
trigger_next_time = #{triggerNextTime},
trigger_status = #{triggerStatus}
WHERE id = #{id}

这里为什么要更新任务的状态?会导致任务被无故启动吧?

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