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!