Skip to content
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

Task stuck at waiting for dependencies #4125

Open
3 tasks done
lukashass opened this issue Sep 18, 2024 · 0 comments
Open
3 tasks done

Task stuck at waiting for dependencies #4125

lukashass opened this issue Sep 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lukashass
Copy link
Member

Component

server

Describe the bug

Screenshot from 2024-09-18 16-29-16

Using 2 dependent workflows and the autoscaler with WOODPECKER_MIN_AGENTS=0 and WOODPECKER_AGENT_IDLE_TIMEOUT=0s it is possible to create the above queue state.

The task is waiting for dependencies, but all dependencies are already done.

The task is moved to pending when an agent is manually added. It should move to pending without an agent being present.

Because there is no task in pending the autoscaler also doesn't create a new agent, which creates a deadlock.

Steps to reproduce

  1. Create two dependent workflows.
  2. Use the autoscaler with WOODPECKER_MIN_AGENTS=0 and WOODPECKER_AGENT_IDLE_TIMEOUT=0s

Expected behavior

When a task has no dependencies left it should move from waiting for dependencies to pending.

System Info

next-4683968925

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@lukashass lukashass added the bug Something isn't working label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant