Automic Workload Automation

Expand all | Collapse all

How to run a workflow every hour at xx:45

  • 1.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 11:09 AM
    A user wants a workflow to run every hour at xx:45 (15 minutes before the top of each hour).

    A possible solution is to use "with a gap of" in the recurring execution option.

    Example
    A workflow with 'generate at runtime' attribute enabled is executed at 7:45AM PST.

    In the recurring execution options Frequency tab, the "with a gap of" is set to 01:00 to previous run.

    ugsu6wr8w9nt.jpg

    In the Time frame tab, the 'force adjustment on time frame' is unselected.

    k6w4riys6vuc.jpghttps://us.v-cdn.net/5019921/uploads/editor/2g/k6w4riys6vuc.jpg" width="432">

    In this example, I left the Days and Range tabs as the default, but can be modified to the user's preferences.

    Result
    The workflow ran at 7:45AM PST. Since the gap is set to every one hour, the next run will be 8:45AM PST because it is one hour after the last run.

    dr8ibwhqeyz8.pnghttps://us.v-cdn.net/5019921/uploads/editor/zb/dr8ibwhqeyz8.png" width="331">

    If there are any suggestions that is a more simple and efficient way to set this up, kindly feel free to provide them in the comments below.  


  • 2.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 11:31 AM
    My favorite method is to put 24 tasks inside of a schedule object.  This technique also allows us to block specific executions.  For instance if we don't want it to run at 1am on Sunday because it would collide with scheduled maintenance, it is very easy to do so by adding a calendar restriction to the 1am scheduled task.



  • 3.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 12:45 PM
    Thanks for the suggestion, petwir.  But how do you go about to restricting it to run at 45 minutes after from the top of the hour instead of at the top of the hour via a schedule object?


  • 4.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 12:50 PM
    The start-time is part of the task properties within the schedule object.  here is an example from our production systems that always runs 5 minutes before the top of the hour;

    l8mb2lvet7a7.jpghttps://us.v-cdn.net/5019921/uploads/editor/9d/l8mb2lvet7a7.jpg" width="507">


  • 5.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 04:31 PM
    Hi petwir!  Thanks for providing a screenshot - it helped clarify things.  I see now why you said 24 tasks.  :)  It definitely adds more flexibility to stop specific executions.


  • 6.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 05:02 PM
    Harriet_Kim_1764 You can also use that shiny new Period object if you know you're going to be reusing the scheduling for other jobs.


  • 7.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 05:14 PM
    Michael Pirson said:
    Harriet_Kim_1764 You can also use that shiny new Period object if you know you're going to be reusing the scheduling for other jobs.
    Hey Michael_Pirson!  How you been?  :)

    Yeah I have tried that earlier, but it's getting ignored when I use it in a recurring workflow (could be a bug - probably need to open a PRB for it).  Do you get the same outcome? 


  • 8.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 05:18 PM
    Good!! - Seems to work for me. Just have to hit the load button next to the drop down and it updates the recurring definition.

    Looks like you might just need to resize your window:


    8283lrfn38vj.png


  • 9.  How to run a workflow every hour at xx:45

    Posted Jan 16, 2018 05:36 PM
    Ahhh! So that's why I have a "." next to my Period object drop down field.  There's supposed to be a 'Load' next to it!  Thanks, Michael_Pirson


  • 10.  How to run a workflow every hour at xx:45

    Posted Jan 17, 2018 05:19 AM
    Some time ago there was a discussion about such a case - with some solution attempts

    https://community.automic.com/discussion/9059/recurring-run-schedule-to-5-minutes-before-every-hour

    cheers, Wolfgang