863e3902af
To avoid huge workflows to block the worker, we will enqueue a new job every 20 steps. This could be more than 20 if there are branches but I think this is fine, the goal is only to have a limit set. Also cleaning a bit the code to mark running steps as failed when workflow fails. I tested it on a huge workflow: https://github.com/user-attachments/assets/d7b8e345-d1a1-4467-96fd-92117b500120