mirror of
https://github.com/langgenius/dify.git
synced 2026-04-09 09:56:41 +08:00
fix(graph_engine): add type hint for workers_to_remove
This commit is contained in:
parent
15b3443e9e
commit
103a9a4e67
@ -217,7 +217,7 @@ class WorkerPool:
|
||||
return False
|
||||
|
||||
# Find and remove idle workers that have been idle long enough
|
||||
workers_to_remove = []
|
||||
workers_to_remove: list[tuple[Worker, int]] = []
|
||||
|
||||
for worker in self._workers:
|
||||
# Check if worker is idle and has exceeded idle time threshold
|
||||
|
||||
Loading…
Reference in New Issue
Block a user