Enqueue a new job every 20 step executions (#15068)

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
This commit is contained in:
Thomas Trompette
2025-10-14 14:20:18 +02:00
committed by GitHub
parent 650a037f67
commit 863e3902af
14 changed files with 738 additions and 116 deletions
@@ -0,0 +1 @@
export const RUN_WORKFLOW_JOB_NAME = 'RunWorkflowJob';