Browse Source
Improve-worker (#7367)
Improve-worker (#7367)
* ♻️ refactor(worker): remove goto * ♻️ refactor(worker): let manager loop exit by itself * ♻️ refactor(worker): fix race condition when closing worker CloseSend is not safe to call when another goroutine concurrently calls Send. streamCancel already handles proper stream closure. Also, streamExit signal should be called AFTER sending shutdownMsg Now the worker has no race condition if stopped during any moment (hopefully, tested with -race flag) * 🐛 fix(task_logger): deadlock in log closure * 🐛 fix(balance): fix balance task Removes the outdated "UnloadVolume" step as it is handled by "DeleteVolume". #7346pull/7378/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 36 deletions
-
21weed/worker/client.go
-
11weed/worker/tasks/balance/balance_task.go
-
2weed/worker/tasks/task_logger.go
-
14weed/worker/worker.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue