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

如何保证流程中断后重启 #22

Closed
exgalibas opened this issue May 14, 2024 · 5 comments
Closed

如何保证流程中断后重启 #22

exgalibas opened this issue May 14, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@exgalibas
Copy link

请问rulego如何保证执行流程中断后重启还能断点续执行,是否有持久化的逻辑

@whki
Copy link
Contributor

whki commented May 14, 2024

没有类似审批流的断点续执行的特性,需求已经登记,后续可能会有。目前已经有了执行快照的信息,可以进一步扩展,满足你说需求场景。欢迎提供PR。
RuleChainRunSnapshot

@zxdstyle
Copy link

同样比较关注这个问题:

  1. 怎么实现平滑重启,尽量不中断任务
  2. 如果中断怎么继续接着执行

@whki
Copy link
Contributor

whki commented May 22, 2024

同样比较关注这个问题:

  1. 怎么实现平滑重启,尽量不中断任务
  2. 如果中断怎么继续接着执行
  1. 已经实现了平滑热更新,不会中断任务。
  2. 规则引擎是无状态的,需要用户执行保存执行过程的状态。
  3. 后续框架会提供,保存“”执行快照“和传入“快照”,从某个快照起点,继续执行,但快照数据需要用户自行保存。

@zxdstyle
Copy link

同样比较关注这个问题:

  1. 怎么实现平滑重启,尽量不中断任务
  2. 如果中断怎么继续接着执行
  1. 已经实现了平滑热更新,不会中断任务。
  2. 规则引擎是无状态的,需要用户执行保存执行过程的状态。
  3. 后续框架会提供,保存“”执行快照“和传入“快照”,从某个快照起点,继续执行,但快照数据需要用户自行保存。

期待“快照”功能

@whki whki added the enhancement New feature or request label May 29, 2024
@whki
Copy link
Contributor

whki commented Jul 6, 2024

v0.22.0 提供了中断和恢复相关接口,参考这个文档

@whki whki closed this as completed Jul 17, 2024
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

3 participants