SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job dependant on time _and_ semaphore
Goto page Previous  1, 2
 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job dependant on time _and_ semaphore
Author Message
barefootguru



Joined: 10 Aug 2007
Posts: 195

Post Reply with quote
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:

Code:
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 View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to: 
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


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.