Epsilon Cluster User Guide

Decision Task

A decision task typically consists of a parent task that contains two or more child tasks under it. Based on the choice made when the parent task is run, it takes a decision on which child task is to be run. A decision task provides the flexibility of running one of the child tasks based on the output of the parent task. It completes the following steps:

  • Run a script.

  • Run a child script based on the parent script's exit code. If the parent script exits with code 1, the 1st child script is run, and so on.

Sample Decision Task

In the sample, to run a child task called "child1", set the variable count to "1"; to run a child task called "child2", set the variable count to "2". Else, continue running the rest of the workflow.