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


jwmurphy
2009-06-10T20:57:53Z
Hello,

I'm evaluating VisualCron as a replacement for the stock Windows scheduler specifically because I needed a product that would handle job dependencies. However, I'm having problems getting this to work. I'm assuming it's my lack of knowledge and I can't get my setup to work despite reading the docs.

The following is my simple test case.

I have two batch files:

failure.bat - It contains the single line.

exit /b 1

success.bat - It contains the single line.

exit /b 0

I created two jobs in VisualCron each with one task. An "Execute" that runs this batch file. When the job failure.bat runs its result is "Success" even though the task is configured to raise an error on a non-zero exit status. This isn't what I expected. I thought the job would fail. What's the correct behavior?

If I succeed in getting this job to "Fail" I'd like the success.bat job to NOT run if the failure.bat has failed. I tried to setup this job dependency using conditions but that hasn't worked either.

The condition I've setup on the success.bat job is a VisualCron condition that checks the failure.bat job. I "Match" if the Exit Code Is Not 0. For the condition action all are "Don't Wait" and "Exit".

This isn't working either. Can VisualCron support what I'm trying to implement? If so can someone provide some guidance? I apologize for the long email however, I'm trying to reduce the back and forth by providing as much detail as possible.

Thanks,
Jay
Sponsor
Forum information
Support
2009-06-11T13:35:52Z
We created a .bat with the following line:

exit /b 1

This .bat caused both the Task and Job to fail. If you export your settings and attach it here we can look at it. Seems like a problem with your "On error" settings.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
jwmurphy
2009-06-12T01:06:15Z
Please see the attached settings. In addition, I've included my failure.bat file.

Thanks,
Jay
File Attachment(s):
VC-Settings.zip (8kb) downloaded 61 time(s).
failure.txt (1kb) downloaded 64 time(s).
Support
2009-06-12T17:40:43Z
The settings you sent did produce an error - as expected? Don't you get an error when executing this? If you were expecting no error you have to alter the OnError settings.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top