SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Job Dependency

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Job Dependency
Author Message
Gary Teh



Joined: 21 Jun 2000
Posts: 3

Post Job Dependency Reply with quote

In a line of job dependency, a semaphore file will be created upon completion of a job. The following job to start will always look for the semaphore file to automatically trigger the start of the job. I realized that this takes one minute. Is there a way to configure the time gap? I want it to be less than a minute. I can't find it in the wizard.

Sun Jul 02, 2000 10:49 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Re: Job Dependency Reply with quote

It can take 1 minute in the worst case. In the best case it can take just one second. 1 minute is how often job B checks for the files and this checking is not related to the performance of job A. If you want to trigger job B only if job A completed succesfully, create job C of script type with the following code
JobRun("A")
JobRun("B")

If there are more jobs in line, D, E, ... you can add them to the job C which will serve as a job queue.

: In a line of job dependency, a semaphore file will be created upon completion
: of a job. The following job to start will always look for the semaphore
: file to automatically trigger the start of the job. I realized that this
: takes one minute. Is there a way to configure the time gap? I want it to
: be less than a minute. I can't find it in the wizard.

Mon Jul 03, 2000 7:46 am View user's profile Send private message
Gary Teh



Joined: 21 Jun 2000
Posts: 3

Post Re: Job Dependency Reply with quote

: It can take 1 minute in the worst case. In the best case it can take just one
: second. 1 minute is how often job B checks for the files and this checking
: is not related to the performance of job A. If you want to trigger job B
: only if job A completed succesfully, create job C of script type with the
: following code
: JobRun("A")
: JobRun("B")

: If there are more jobs in line, D, E, ... you can add them to the job C which
: will serve as a job queue.

As mentioned, job B only checks for the files every minute. Can i configure the checking time to less than one minute?

Mon Jul 03, 2000 10:43 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7841

Post Re: Job Dependency Reply with quote

Yes and no. You cannot do this using the Job Wizard, but you can do this from the command line using 24x7 command (please see "Using JDL Files" help topic in the online help file for more details). So the command would be 24x7 /SCRIPT [jdl file] in the file you would have SET [job id] POLLING_INTERVAL=[number of seconds]. This [number of seconds] can be any number from 1 to 2147483647.

Also consider as a more efficient method, making an asyncronious script job that will run in the background and perform file check every seconds
Something like
LoopUntil file_found, END_LOOP

FileExists [file name], file_found

IfThen file_found, END_LOOP

Wait [n seconds]
END_LOOP:

The background job is more efficient for short polling intervals as it does not interrupt the main scheduler thread from performing other tasks such as job schedule processing, job monitoring, etc...

: As mentioned, job B only checks for the files every minute. Can i configure
: the checking time to less than one minute?

Mon Jul 03, 2000 11:03 pm 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.