cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
610
Views
0
Helpful
1
Replies

Cancel job based on variable value

auerbecktj
Level 1
Level 1

We currently have a number of jobs that are dependent on one another (i.e. Job1 runs, sets a variable to D if the action was successful and then Job2 will run if both Job1 was successful and the variable is equal to D). We are forced to handle it this way as the script executed by Job1 will always return as ran successful. The situation we're running into is that Job1 will run successfully, but if the action inside it ends up not returning D to the variable the job will just remain in waiting on dependencies. Is there any way to cancel Job2 immediately if the variable doesn't contain that specific value?

 

Any help or suggestion would be appreciated.

1 Reply 1

Derrick Au
Level 4
Level 4

Hi auerbecktj,

 

How about using a variable event that monitors for that specific variable? If variable is not equal to D, then launch a Tidal job which runs a sacmd command to abort Job2 and then another sacmd command to set it to an externally status or similar.

 

Cheers,

Derrick Au

Review Cisco Networking for a $25 gift card