The Execution rule works on the execution status and condition defined on the current asset. Further connected assets are executed based on the completion status of the current asset step.
- For the selected asset, let us configure an Execution rule.
- Place the cursor on the asset and right-click on it to view various options ‘Add asset’, ‘Add rule’ and ‘Delete asset’.
- Click the Add rule.
- A Configure rules to the asset slide window appears from the right side of the page.
- Select the Execution rule.
- By default, the Execution 1 rule is defined on ‘Success’ execution status.
- Click the Add Condition button to add a condition apart from the execution status.
- Click the Delete icon to delete the existing Execution 1.
Note: You can add more than one Execution rule using Add Execution button.
- When the new condition is added, you can either choose the ‘AND’/’OR’ option.
- Select the ‘Year’ from the drop-down list.
- Select the ‘==’ operator from the drop-down list.
- Type the text ‘2022’ in the text box.
Note: The drop-down list box is enabled to type text too.
- Click the Select button to select an asset for ‘Then, execute’ text field.
- In our use case, we selected, the ‘CSV_190422’ pipeline.
- Similarly, for the ‘Else, execute’ text field, and select an asset.
- For the use case, we selected, ‘Work_200422’.
- Click the Save and Close button to schedule the job.
- Click the Schedule button to schedule the created job.
- The Schedule Job slide window appears from the right side of the page.
Note: By default, the Schedule Later radio button is selected.
- Select the Schedule Now radio button.
- Click the Apply button.
- The Successfully Scheduled Job page displays the Job name.
- To view the job execution details, click the View Run Details button.
Note: You can click the Edit Job or Edit Schedule button to modify the job and schedule details as necessary.
The Run Results provides the job execution details with Job name, Tags, Sessions, Scheduled By, Started On, Ending On, and Alerts.
- The asset displayed in green color signifies the job is executed successfully or else the asset displayed in red color signifies the job execution has failed.
- Click the Kill Session button if you wish to kill the execution (current session) of the scheduled job.
- Click the Session Details tab.
- The Session Details page displays the session status (Success/Failed/In-Progress) with additional information.
To view the selected Job page, go to its Project dashboard from the Projects page and click View run history against the selected job. In the Session Details page, click the ‘Success’ session and then click Edit job from the vertical ellipses drop-down list in the Run Results tab.
- The selected Job page is displayed.
- Place the cursor and double tap on the asset on which the asset dependency was configured.
- The selected asset (node) summary is displayed along with the configured Asset dependency rule.
Note: The Execution configured rule displays ‘True’ and ‘False’ status, since the execution rule worked on the If-Else condition.