SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Run Now or Scheduled

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Run Now or Scheduled
Author Message
Martyn



Joined: 26 May 2004
Posts: 27

Post Run Now or Scheduled Reply with quote

Is there a way to code for whether the job being executed
was submitted through the Run Now button or a scheduled run.

For instance. I want a job to skip a procedure if it
was submitted via the Run Now botton but would execute
the procedure if it was submitted via a scheduled run.

Fri Jan 14, 2005 3:19 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Run Now or Scheduled Reply with quote

Not sure if this can be done. The only thing I can think of is having 2-job solution
Have job A with [no schedule] and having job B scheduled as needed and running job A

In this situation job B can set some flag seen by job A and then after A is complete turn that flag off. This way when job A is run manually using Run Now the flag is off and it knows it is running in the "run now" mode. Depending on the job type you can use global variables, semaphore files, changes in INI or registry as a place to set such flag.

: Is there a way to code for whether the job being executed
: was submitted through the Run Now button or a scheduled run.

: For instance. I want a job to skip a procedure if it
: was submitted via the Run Now botton but would execute
: the procedure if it was submitted via a scheduled run.

Fri Jan 14, 2005 5:00 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.