Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


gencap
2010-11-15T23:22:29Z
I have a job with 2 tasks
Task 1 does something
Task 2 checks the output log of Task 1 and notifies on success, error, missing, etc.

If Task 1 doesn't run at all, Task 2 will not run either and will not send a notification that Task 1 failed to run.

Is there a way for Task 2 to always run regardless of what happens with Task 1?

The particular error I had was that I accidentally enabled an incorrect Condition for Task 1 which prevented it from running. But that also prevented Task 2 from running and since "Condition not met" is not an error, I did not notice that Task 1 has not been running for a couple of days.

I can create a second Job for Task 2 alone, but I wanted to know if there is a way of doing this within one Job.

Thanks.
Sponsor
Forum information
Support
2010-11-16T08:18:24Z
You can edit the "On error" settings on Task 1 to set it to run Task 2 on error.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
gencap
2010-11-16T17:13:19Z
Support wrote:

You can edit the "On error" settings on Task 1 to set it to run Task 2 on error.



True, but that will only trigger if Task 1 gets executed and fails. What happens if a condition (set incorrectly) prevents Task 1 from executing at all? Will Task 2 still be launched or will it be skipped?

Support
2010-11-16T18:38:08Z
You could either set a Notification on the Job (which will be run when the Job is exited) or you could set the Condition to run another Task in the Job or another Job when Task 1 is not run.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top