SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Stop Polling For Semaphore file

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Stop Polling For Semaphore file
Author Message
Duncan



Joined: 22 Jan 2004
Posts: 13

Post Stop Polling For Semaphore file Reply with quote

I have a job that depends on a file existing to start.
The file is used in the job and must remain where it is
until the end of the job at which point it is moved.
The polling interval is shorter than the time it takes the
job to run, so it tries to restart the job while it is running.
Other than increasing the polling time to something longer than the
time it takes the job to run (which I'd rather not do) is there a way
to stop this? Can I, for example, tell the job to stop polling altogether?

Thanks in advance for your help.

Tue Jan 11, 2005 10:59 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Stop Polling For Semaphore file Reply with quote

You can disable the job when it starts and enable it when it ends. This way while the job runs it doesn't check for the semaphore files. If this is not a program type job convert it to a JAL script job. To enable/disable job without hard-coding job id or name use @V macro-parameter

JobEnable(@V"job_id", FALSE)
RunAndWait( ......
JobEnable(@V"job_id", TRUE)

: I have a job that depends on a file existing to start.
: The file is used in the job and must remain where it is
: until the end of the job at which point it is moved.
: The polling interval is shorter than the time it takes the
: job to run, so it tries to restart the job while it is running.
: Other than increasing the polling time to something longer than the
: time it takes the job to run (which I'd rather not do) is there a way
: to stop this? Can I, for example, tell the job to stop polling altogether?

: Thanks in advance for your help.

Tue Jan 11, 2005 11:33 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
Page 1 of 1

 
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.