Automic Workload Automation

  • 1.  Can a task be restarted with exponential backoff?

    Posted Sep 13, 2018 12:56 PM

    Hi,

    I was wondering if it is possible to restart a task with exponential backoff, i.e. if the task fails it will be restarted after 1 minute, if it fails again, after 2, 4, 8, 16 ecc... minutes.

     

    I am using the postcondition below for the moment.

     

     

    Thanks,

    Marco



  • 2.  Re: Can a task be restarted with exponential backoff?

    Posted Oct 30, 2018 04:37 PM

    I suppose you could do it like this?

     

    if &$restart_count# = 1

         restart in 1 minute.

    if &$restart_count# = 2

         restart in 3 minutes.

    if &$restart_count# = 3

         restart in 5 minutes.

    if &$restart_count# >= 4

         restart in 15 minutes.

     

    However it would be cool if &$restart_count# could be used in a formula that would compute the number of minutes to wait.  I have no idea if that is possible or not.