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

Conditionals in DAG spec #28

Open
EpicWink opened this issue Jul 23, 2020 · 0 comments
Open

Conditionals in DAG spec #28

EpicWink opened this issue Jul 23, 2020 · 0 comments

Comments

@EpicWink
Copy link
Owner

Support conditionals in DAG-type workflow-spec.

Sometimes activity tasks in workflows only need to be run if a certain condition is met. There is no way to have optional branches in the current workflow spec definition.

Proposed syntax example:

tasks:
  - id: foo
    type:
      name: spam-foo
      version: "0.3"
    if:
      from: workflow
      key: $.run-workflow
  - id: bar
    type:
      name: spam-foo
      version: "0.4"
    dependencies:
      - foo
    if:
      from: dependency
      key: $

Nothing more complex should be required as a prior task could be used to use the entire current workflow state to determine if a branch should be run.

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