Automic Workload Automation

 View Only
  • 1.  Restart a task n times before aborting

    Posted Mar 07, 2018 04:54 PM

    Hi

    Here is my use case:

    In a workflow, there are two jobs, the first job triggers a process on a server . The second job checks for the return code of that first job by querying the database. The return code might not be available immediately, so the second job has to query the database 'n' number of times and then fail if it still doesn't find anything.

    I was able to achieve the job to restart by using the post conditions 'Restart task' option, but what is the best way to iterate this process until certain number of times. I cant use the current time or time since activation as the activation time will not be accurate.

    Appreciate your suggestions as always!



  • 2.  Restart a task n times before aborting
    Best Answer

    Posted Mar 07, 2018 05:34 PM
    We use this logic quite often. Not sure if its best practice but it seems to work:


    06h6bkn4vxfa.pnghttps://us.v-cdn.net/5019921/uploads/editor/xi/06h6bkn4vxfa.png" width="782">



  • 3.  Restart a task n times before aborting

    Posted Mar 08, 2018 11:16 AM
    Great! I never thought of using the system variables' will give it a try. Thankyou!