Concurrency Flow # Not DefinedDefinedcompletedqueuedstartedYesNoYesNoYesNoControllerValidate & Process EventIs concurrency defined?Create PipelineRun with state='started'Create PipelineRun with pending status and state='queued'Pipelines-as-CodeWatcherPipelineRun ReconcilerCheck stateReturn, nothing to do!Create Queue for RepositoryIs PipelineRun Done?Add PipelineRun in the queueIf PipelineRuns running < concurrency_limitStart the top most PipelineRun in the QueueReturn and wait for your turnReport Status to providerRequeue RequestUpdate status in RepositoryUpdate state to 'completed'Check if concurrency was defined?Remove PipelineRun from QueueStart the next PipelineRun from QueueDone!