Commit 86d6e36
fix: Address Bugbot feedback — stale terminator and flush components
- AsyncWorker.kill(): Reset queue to None instead of putting a stale
_TERMINATOR (since we now cancel the task directly, the terminator
was never consumed and would break restart)
- close() with async transport: Call _flush_components() to flush
session flusher, log/metrics/span batchers even when sync flush
is skipped
- Update test to verify fresh queue creation after kill
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 8883b78 commit 86d6e36
3 files changed
+31
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
| 1048 | + | |
1048 | 1049 | | |
1049 | 1050 | | |
1050 | 1051 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | 216 | | |
222 | 217 | | |
223 | 218 | | |
224 | 219 | | |
225 | 220 | | |
226 | 221 | | |
| 222 | + | |
| 223 | + | |
227 | 224 | | |
228 | 225 | | |
229 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1028 | 1028 | | |
1029 | 1029 | | |
1030 | 1030 | | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1049 | 1052 | | |
1050 | 1053 | | |
1051 | 1054 | | |
| |||
1276 | 1279 | | |
1277 | 1280 | | |
1278 | 1281 | | |
1279 | | - | |
1280 | | - | |
| 1282 | + | |
| 1283 | + | |
1281 | 1284 | | |
1282 | 1285 | | |
1283 | 1286 | | |
1284 | 1287 | | |
1285 | | - | |
1286 | | - | |
| 1288 | + | |
| 1289 | + | |
1287 | 1290 | | |
1288 | 1291 | | |
| 1292 | + | |
| 1293 | + | |
1289 | 1294 | | |
1290 | | - | |
| 1295 | + | |
1291 | 1296 | | |
1292 | 1297 | | |
1293 | 1298 | | |
| |||
0 commit comments