SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Slide Job on Holiday

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Slide Job on Holiday
Author Message
Anson Kibby



Joined: 02 Sep 2003
Posts: 13

Post Slide Job on Holiday Reply with quote

I want to use the "Slide Job on Holiday" feature, but the wizard does not present that option - it only gives me the "skip holiday" option. However, when I print the specs for a job that I've set up, one of the "Schedule and Trigger" options is to "Slide Holidays." How do I turn this on?
Thanks, Anson

Fri Oct 17, 2003 12:02 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Slide Job on Holiday Reply with quote

This option is only available for monthly jobs.

If you want to implement this behavior for a daily job set it to run every day or every work day and in the job check if the system date happens to be a holiday or other non-run day then abort the job.

Check out http://www.softtreetech.com/24x7/archive/1.htm example. You may want to remove CHECK_TIME section and schedule that job to run once a day.

: I want to use the "Slide Job on Holiday" feature, but the wizard
: does not present that option - it only gives me the "skip
: holiday" option. However, when I print the specs for a job that I've
: set up, one of the "Schedule and Trigger" options is to
: "Slide Holidays." How do I turn this on?
: Thanks, Anson

Fri Oct 17, 2003 12:34 pm View user's profile Send private message
Anson Kibby



Joined: 02 Sep 2003
Posts: 13

Post Re: Slide Job on Holiday Reply with quote

This code example is really helpful, but it still doesn't help me "slide" a work-day holiday to the next work-day. I'm thinking the easiest way to do that would be to have a way to "schedule" a non-scheduled job, or to "add" a one-time execution to an already-scheduled job - I think this may be possible, but I've just now started looking for the way to do that. If you have a short-cut idea, that would be great.
Thanks,
Anson
: This option is only available for monthly jobs.

: If you want to implement this behavior for a daily job set it to run every
: day or every work day and in the job check if the system date happens to
: be a holiday or other non-run day then abort the job.

: Check out http://www.softtreetech.com/24x7/archive/1.htm example. You may
: want to remove CHECK_TIME section and schedule that job to run once a day.

Tue Oct 21, 2003 10:01 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Slide Job on Holiday Reply with quote

That code snipped was given just an idea how to add custom scheduling logic.

If in such job run daily with "skip holidays" option enabled you can do the following

// check if yesterday was a holiday
Dim run_it, boolean
IsHoliday "@DP"mm/dd/yyyy"", run_it
// if yes, run the job otherwise abort
IfThen run_it, RUN_EXE
Exit

RUN_EXE:
Dim pid, number
Run "my_program.exe", "", pid

Of course you can also schedule one time jobs as suggested in your message but then you have to update these jobs every year if you deal with floating holidays (such as Thanksgiving Day or similar).

: This code example is really helpful, but it still doesn't help me
: "slide" a work-day holiday to the next work-day. I'm thinking
: the easiest way to do that would be to have a way to "schedule"
: a non-scheduled job, or to "add" a one-time execution to an
: already-scheduled job - I think this may be possible, but I've just now
: started looking for the way to do that. If you have a short-cut idea, that
: would be great.
: Thanks,
: Anson

Tue Oct 21, 2003 11:37 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.