max-in-flight
check. The builds table in the DB is showing job as aborted
. The column "serial=true"
in the builds table for the job or build is hanging and "scheduled=true"
. The scheduler is looking at that pending build and since serial is set to true, it gets stuck on the check if max-in-flight
is reached.Select id, name from pipelines;
pipeline-id
and build number:select id from builds where pipeline_id=3 AND name='7';
Pipeline-id
is retrieved from the first step and name is the build number that is hanging.false
for the correct ID of the build:
UPDATE builds SET scheduled = false WHERE id = 2;
This will update the scheduled field on that pending build to be false and free up the max in flight check to make it able to schedule that build again.