New builds don't trigger automatically when a pending build exists #6071
Replies: 3 comments 4 replies
-
|
tl;dr - this seems to really be "no builds get automatically created when a job has a stuck pending build" Hmm, this really seems like a second-order effect of #5935, which is already a failure mode -- in theory, if a pending build exists there should never be a need to automatically trigger a new one. This is because pending builds do not yet have their inputs determined (more specifically they do not yet have a "plan"), so any pending build should automatically get the latest versions of any inputs by the time it goes into the "started" state. Does this make sense? |
Beta Was this translation helpful? Give feedback.
-
|
Manually retriggering the job /did/ work and moved that single pending one quite out of sight - so it was not obvious until we digged through the source and manually ran queries for verification. IMHO this case should be handled, either by having a big fat label somewhere in the web interface stating there's (still?) pending jobs in the queue, or by creating that new job regardless - especially considering retriggering the job manually did work. |
Beta Was this translation helpful? Give feedback.
-
|
@akshaymankar @flokli the other take here is that multiple automatically-created pending builds should be allowed -- I'm just pretty sure this would mean a change to some of the semantics of scheduling and I haven't thought through all the consequences. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
If a job has pending builds (for example, due to #5935), new builds don't get triggered automatically. But triggering the job manually works.
Steps to reproduce
trigger: truefor at least one get.Expected results
The job triggers a new build when a new version of the triggering input work.
Actual results
The job doesn't trigger a new build.
Additional context
We enabled jaeger tracing to see where it was failing. We could isolate the issue to this SQL. It fails to create a build when the job has any pending builds.
This wouldn't have been a problem if we were able to cancel the old build (I see that, that issue is fixed in master), but this would still show up if a retrigger of an old build happens exactly at the same time as a new build is supposed to be triggered.
Triaging info
Pairing with @flokli
Beta Was this translation helpful? Give feedback.
All reactions