Can the Script set a "Failed Completion" flag to cause Publisher not to launch another task?
I have two tasks in series. Task "A" needs to successfully complete before Task "B" will start.
Task "A" has code which will check for a condition and will halt the rest of the script to run BUT in the eyes of Publisher the task was successful in completing.
Therefore is there a way to force the completion flag to set to "Failed" even though the task was successful. One though is to include a "bug" in the script which will cause the task to fail on that condition. The issue there is Publisher will now send an alert email on each failure (task runs every 5 minutes). Not a suitable solution.