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丢失问题 #100

Closed
feellmoose opened this issue Dec 11, 2023 · 1 comment · Fixed by #107
Closed

重新部署job丢失问题 #100

feellmoose opened this issue Dec 11, 2023 · 1 comment · Fixed by #107

Comments

@feellmoose
Copy link
Collaborator

初步思考解决方案如下

  1. quartz持久化
  2. 每次存储判断时间和状态是否符合,并写回(只写回状态不加锁)
  3. 脱离state只存储取消等特殊状态,其他与时间相关状态的在返回时由时间取得。
@love98ooo
Copy link
Member

脱离state只存储取消等特殊状态,其他与时间相关状态的在返回时由时间取得。

这个方法需要做的修改非常多,而且每次读取event都需要根据时间计算state并不优雅

@feellmoose feellmoose linked a pull request Dec 21, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants