-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
Issue Description
The active_workers counter in SummarizationWorker is checked but never updated, making it useless for controlling concurrency.
Location
crates/terraphim_service/src/summarization_worker.rs:252
Current Code
```rust
if !self.is_paused
&& self.active_workers < self.config.max_concurrent_workers
&& task_sender.try_send(task.clone()).is_ok()
```
The active_workers field is checked but never incremented/decremented anywhere in the code.
Impact
- MEDIUM priority - Logic bug
- The counter provides no actual concurrency control
- May lead to confusion about actual worker limits
Recommended Fix
Either:
- Update the counter when tasks are started/completed
- Remove the field entirely if not used
References
- Identified in code review for PR fix(zipsign): update zipsign API to v0.2 #429
- Related to summarization worker task management