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


blombardo
2010-11-03T16:57:39Z
Hello, my company is looking in to implimenting VisualCron if we can get this to work correctly.

Currently we use a windows scheduled task and scripts to do all this and we would like to make this more user friendly for future tasks.

Task: Restart a service on a remote server every 12 hours, if the restart fails, try again in 1 minute, if it fails again then send an email. Does anyone know how to do this?
Sponsor
Forum information
Support
2010-11-03T20:14:19Z
1. create one Restart service Task. Go to "On error" tab. And set it to Retry 1 time and wait 1 minute.
2. Add a Email Notification and check On error in either Job or Task level. This will send an email if failing.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
blombardo
2010-11-03T20:37:40Z
I forgot to post this part:

If sucsessfull i want it to go to e-mail address A
If it fails after retrying i want it to go to e-mail address B


(this address actually sends us a text message paging us, its used for overnight issues)
Support
2010-11-03T20:39:15Z
Ok, currently you can't determine if the failure was because of retry or first time.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
blombardo
2010-11-03T20:41:58Z
I edited the post, not sure if it helps. Doesnt sound like it

blombardo wrote:

I forgot to post this part:

If sucsessfull i want it to go to e-mail address A
If it fails after retrying i want it to go to e-mail address B


(this address actually sends us a text message paging us, its used for overnight issues)


Support
2010-11-03T20:42:48Z
You can do this instead:


1. restart service with On error goto Task 2
2. task 2 - send error email one
3. wait Task 1 minute
3. restart service - use failure email notification
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
blombardo
2010-11-03T21:43:46Z
Support wrote:

You can do this instead:


1. restart service with On error goto Task 2
2. task 2 - send error email one
3. wait Task 1 minute
3. restart service - use failure email notification



Does this sound correct?
I set it up as

Task 1: Restart Service, on error go to task 2
Task 2: Notify of retry, go to task 3
Task 3: Wait task, go to task 4
Task 4: Restart Service: Retry.
The Job then has Notify on Error for notifications

How do i have it stop after Task 1 if it is sucsessful? For the main settings of the Job i have un-checked run tasks in order. According to the flow charter it will continue through the tasks on sucsess, instead i want it to End Job

If i can get this to work correctly we will be purchasing multiple licenses
Support
2010-11-03T21:46:30Z
You need to run Tasks in order. And if Task 1 fails the Job will stop. Only the Email Notification on Task 1 will be sent on failure.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2010-11-03T21:48:45Z
I am mixing up different approaches. I was talking about adding the Email Notification to Task 1. Still, the flow you describes is better however you need to run Tasks in order.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
blombardo
2010-11-03T22:34:15Z
If task 1 is sucsessful then job should end and not run other tasks. If job is not sucsessfull, aka On Error, then Go to next task. How do i set it up to end if that first task is complete?
Support
2010-11-03T22:38:43Z
Got it,

you could add a Condition set, with a VisualCron condition that checks previous Task. If that Task don't have exit code 0 (which is success) you want it to exit the Job. Then add this Condition to the third Task by selecting that Condition set in that Task.

I am attaching a screenshot of settings.

Support attached the following image(s):

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
blombardo
2010-11-04T16:37:39Z
Thanks i figured it out works great
Support
2010-11-04T19:58:08Z
Thanks for the update.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top