Skip to content

fix: remove invalid Unlock calls in scaleset worker#598

Open
benoit-nexthop wants to merge 1 commit intocloudbase:mainfrom
nexthop-ai:fix-scaleset-unlock
Open

fix: remove invalid Unlock calls in scaleset worker#598
benoit-nexthop wants to merge 1 commit intocloudbase:mainfrom
nexthop-ai:fix-scaleset-unlock

Conversation

@benoit-nexthop
Copy link
Contributor

@benoit-nexthop benoit-nexthop commented Feb 9, 2026

Summary

Fixes invalid mutex unlock calls in the scaleset worker that could cause panics.

Changes

  • Remove Unlock call in handleScaleDown that was called before any lock was acquired
  • Change defer Unlock to immediate Unlock in consolidateRunnerState loop to avoid holding locks until function exit

Testing

Tested in production environment.


This PR is part of a stack of changes:

  1. fix: remove invalid Unlock calls in scaleset worker #598 ← you are here
  2. Add OIDC authentication support #599
  3. Allow multiple users and open read-only APIs to non-admins #600
  4. Add version display to navigation sidebar #601

- Remove Unlock call in handleScaleDown that was called before any lock
  was acquired
- Change defer Unlock to immediate Unlock in consolidateRunnerState loop
  to avoid holding locks until function exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant