-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
depends_on
ignored if server is restarted
#1606
Comments
Update: we (cc: @lukaszgyg) were able to reproduce the issue (same steps) also on latest stable:
|
By checking the code (it's been a while since I touched it), it seems like we have two representation of a Task, with a slight difference:
the task.ShouldRun method will check DepStatus. However, when we load tasks in memory (at start up) we don't fill the DepStatus property. When this is empty, the ShouldRun returns true. LATER EDIT: the only place where we seem to write DepStatus is in the @anbraten does this make sense? |
@alexef Good catch. Yes it definitely seems to be missing |
depends_on
ignored if drone server is restarteddepends_on
ignored if server is restarted
I'm not happy how queue is implemented atm at all ...: #1518 , ... I think that could be done in one catch :) |
Agree a rewrite is granted, but I would like to see this bug fixed (as it negatively impacts our organisation). Will prepare a pr :) |
changes are in master. now trying to also backport to v0.15 #1625 |
Component
server
Describe the bug
assume a multi pipeline set up, with:
while a is running and b is pending, restart the drone server
what is expected: b stays in pending until a completes
what happens: b immediately starts running, ignoring a which is also still running
System Info
Additional context
maybe related to: #200
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: