09-21-2016 12:41 PM - last edited on 03-25-2019 01:32 PM by ciscomoderator
Hello Everyone,
I'm having some logic challenges when setting up a daily repeating job that runs every 15 minutes to not run on Sunday between 6am - 12pm.
Environment: TIdal 6.0.3/ Windows
My first thought was to create 2 Variables:
Tidal_Maintenence_StartTime, string 05:30:00:000
Tidal_Maintenance_EndTime, String, 12:00:00:000
Then create 2 action variables
Stop Job launching using Variable: Tidal_Maintenence_StartTime, value False
Start job launching using Variable: Tidal_Maintenance_EndTime, value True
I don't think I have the logic down to continue. I thought I would jus share my thoughts and see if someone could help me build a good foundation logic and assist with tasks. thanks in advance.
Jeff
09-21-2016 04:56 PM
Have you reviewed this thread ?
https://supportforums.cisco.com/discussion/13066886/how-place-all-tidal-jobs-maintenance-mode-during-maintenance-activities
09-22-2016 05:05 AM
Thank you for the reply Dinesh. We currently have some jobs already scheduled. What I wanted to accomplish is to modify the scheduling behavior of jobs already in production.
I was thinking that if we create jobs so they don't run during that timeframe, We wont have to worry about job issues as we grow. So in the future, no jobs will be scheduled during the maintenance timeframe.
09-22-2016 12:25 PM
Hi, Jeff. I'm new to Tidal, but I'd like to offer a suggestion (which hopefully won't come off as naive).
Have you considered creating a dependency on a global "May_This_Job_Run" variable? Create a job which sets that variable to False at 6:00am Sunday, and then back to True at 12:00pm.
This will lock the daily repeating job in a Waiting on Dependency state during the down time. Setting the "If job is currently running" option to 'skip' should prevent any new occurrences from launching during that time frame.
Once the "May_This_Job_Run" variable is set to True, the held occurrence should run and allow scheduling to resume as normal...
10-04-2016 05:30 AM
Hello Cale,
Thanks for the tip. Check out my results above.
09-26-2016 06:56 AM
Thanks for sharing your ideas. I'll be trying to test this within the week. hopefully I can get this rolling.
10-04-2016 05:22 AM
Here is my end result which seemed to work. If you have a better plan, please let me know:
Issue: Need to move all currently repeating jobs out of the Sunday 6am - 12pm schedule but then let them run after Sunday 12pm.
Here is what I did:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide