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

添加触发器原型 #13

Open
perillaroc opened this issue Apr 7, 2022 · 1 comment
Open

添加触发器原型 #13

perillaroc opened this issue Apr 7, 2022 · 1 comment
Assignees

Comments

@perillaroc
Copy link
Owner

依赖关系由触发器 Trigger 定义。

三个部分:

  • 内部表示:Node 如何保存 Trigger
  • 用户定义:用户如何方便地定义 Trigger
  • 内部检查:Node 如何检查自己的 Trigger 是否被满足
@perillaroc
Copy link
Owner Author

perillaroc commented Apr 11, 2022

内部表示

使用 AST 表示 Trigger

用户定义

兼容 ecFlow 的 trigger 表达式。

使用 lark 解析表达式字符串,生成包含 AST 对象的 Expression

内部检查

evaluate_trigger 仅检查节点自身的触发器

resolve_dependencies 自顶向下检查依赖关系,并运行满足条件的任务

@perillaroc perillaroc moved this from In Progress to Done in 工作流 Takler May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

1 participant