feat(worker): add worker.close() and allow context management of worker class#77
Conversation
c8f940d to
1b17a10
Compare
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
1b17a10 to
808f340
Compare
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Signed-off-by: Shijie Sheng <liouvetren@gmail.com>
Code Review ✅ Approved 4 resolved / 4 findingsImplements context management for worker.run() with proper resource cleanup, addressing client channel leaks and silent task failures. Worker exceptions are now logged and cleanup is guaranteed through context manager semantics. ✅ 4 resolved✅ Bug: Client context manager dropped in integration test helper
✅ Edge Case: Worker tasks may fail silently before yield completes
✅ Bug: Client gRPC channel leaked — never closed in helper
✅ Edge Case: Worker task exceptions silently swallowed
OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
What changed?
Why?
make it easier to use worker
How did you test it?
Unit Test
Potential risks
Release notes
Documentation Changes