We would like to set-up a job to execute as mention below -
The main job should run every hour. As contingency, we want to explore the option of dynamic run.a. Next instance should start as soon as last instance is Finished.b. If next 2 instances didn’t find a file in the folder, the job will not start 3rd instance, and the next run will happen on schedule (11am CST for e.g.) as per the hourly manner.
Please let us know if could it be achieved once?
what do you mean by As contingency, we want to explore the option of dynamic run. ??
and by a. Next instance should start as soon as last instance is Finished.??
One solution we have applied works like this;
Start the workflow once every hour --
First task checks for a file to process. If there is no file to process, then stop.
Otherwise, run the workflow, and the last step kicks off another instance of the same workflow.