AM step manager function
Look into if this approach is feasible:
If there are a lot of AM steps running already, only start a new one if a previous one finished. Get the longest WAITING task. Instead of the step retrying itself, it would be a FIFO queue. In the finalize task another function could be called if an AM task finished successfully to manage this.
How to handle failure? - Block step if too many How to handle starting a new one with no active AM steps, because all of them failed.
Edited by Panna Liptak