Commit 302cd18
Wait for in-flight network uploads to complete on shutdown
The network executor was given only a 1-second termination timeout,
which is too short for batches undergoing retries with exponential
backoff. In-flight uploads would be abandoned silently, causing failure
callbacks to never fire and the CLI to report success=true when retries
were exhausted.
Introduces NETWORK_TERMINATION_TIMEOUT_S (30s) so shutdown waits long
enough for any in-flight batch upload — including its full retry budget
— to complete and invoke callbacks before the process exits.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 11c54b5 commit 302cd18
1 file changed
Lines changed: 4 additions & 1 deletion
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
| 302 | + | |
| 303 | + | |
301 | 304 | | |
302 | 305 | | |
303 | | - | |
| 306 | + | |
304 | 307 | | |
305 | 308 | | |
306 | 309 | | |
| |||
0 commit comments