Skip to content

Update handle_message.go - #1

Open
jeroen-mulder wants to merge 2 commits into
mainfrom
bugfix/draining-workers
Open

Update handle_message.go#1
jeroen-mulder wants to merge 2 commits into
mainfrom
bugfix/draining-workers

Conversation

@jeroen-mulder

Copy link
Copy Markdown

Actually shut down workers

Actually shut down workers
@jeroen-mulder jeroen-mulder self-assigned this Aug 10, 2026
@jeroen-mulder jeroen-mulder added the bug Something isn't working label Aug 10, 2026
Let's unlock it too
Comment thread worker/handle_message.go
case "drain":
w.state.Store(contract.WorkerStateDraining)
// TODO: maybe it would help if we actually drained here....
w.tasksMu.Lock()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lock it and throw away the keys.
Maybe we want to unlock this mutex agian once we're done with it

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

Successfully merging this pull request may close these issues.

2 participants