 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
barefootguru
Joined: 10 Aug 2007 Posts: 195
|
|
|
|
More notes for posterity...
I modified the plan. If the job had failed for reasons other than the semaphore file being MIA it would have re-queued itself--not ideal.
So now I have job A which is scheduled for a day of the month, checks for the Warehouse Up semaphore, and reruns itself on error (after a suitable delay). The JavaScript looks like this:
 |
 |
if (!(File.exists('WHup.txt')))
{
var message = 'Warehouse not up, delaying.';
Scheduler.logAddMessage('WARNING', @V"job_id", '@V"job_name"', message);
error('Job failed on purpose');
} |
On success it creates a semaphore file for job B, which runs the actual report.
|
|
Tue Aug 28, 2007 4:02 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|