Robotic Process Automation

Expand all | Collapse all

How scheduling works when some schedules are missed

  • 1.  How scheduling works when some schedules are missed

    Posted Fri September 03, 2021 08:36 AM
    Edited by Vinicius Marques Fri September 03, 2021 06:03 PM
    Hi,

    I would like to confirm how scheduling would work on the following scenario: There are two schedules for different scripts, one runs one time/day and the other runs multiple times. There is only one Runtime license available. The first one could take many hours to complete, so some of the recurrent schedules of the second would be missed (runtime being used).

    Here are some questions:
    1. What would happen after the first script finishes? The second script would run once for every schedule that was missed or only once for the latest postponed schedule and then follow the "correct" interval?
    2. If the first script ends after the configured "Stop time" of the second script, will the second script run at least once since every schedule was missed during the day?

    Regards,


    ------------------------------
    Vinicius Marques
    ------------------------------


  • 2.  RE: How scheduling works when some schedules are missed

    Posted Fri September 03, 2021 05:48 PM
    That's a good question Vinicius!  My experience is that if a schedule is missed for any reason there is no attempt to retry it.  This would include your scenario of there being no available run-time license.  I would be interested to hear from an RPA authority whether there is a way to set retries.

    ------------------------------
    NIGEL CROWTHER
    ------------------------------



  • 3.  RE: How scheduling works when some schedules are missed

    Posted Thu September 09, 2021 06:41 PM
    Edited by Vinicius Marques Thu September 09, 2021 06:41 PM
    Since we didn't get an 'official' answer yet and I had some runtime issues fixed, I did a test to attempt to understand how it works.

    I scheduled a script that would take 20 minutes (with a Delay command) to execute and then scheduled another very quick one, just a simple "Hello World". The HelloWorld script was set to run every 5 minutes and to start one minute after the first (longer) one, just so some schedules would be missed. Here are the results:
    • It seems that every schedule that was missed due to the runtime being already in use was just postponed and executed as soon as the runtime was available.
    • After all postponed schedules were executed, the regular (5 minutes interval) schedule was resumed.

    Here you can see the logs:

    Would be nice if someone could confirm if this is how it works and explain how to change this behavior, if possible, to something like keeping only one of the postponed schedules.

    ------------------------------
    Vinicius Marques
    ------------------------------