Commit 6a95a52
committed
feat: Allow external semaphore for executor busy state tracking
This change allows the semaphore controlling task concurrency to be passed
into the poll_loop instead of being created internally. This enables:
1. Sharing the semaphore across multiple poll loops connected to different
scheduler nodes
2. External tracking of executor busy state by querying available_permits()
3. Reporting busy state in scheduler shared state location metadata
The semaphore parameter is optional - if None is passed, the function
creates one internally to maintain backwards compatibility.1 parent 2abc199 commit 6a95a52
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
102 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
0 commit comments