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.