Repository navigation
Fix submission status updates - #2669
Conversation
b691319 to
0a3ded2
Compare
|
The description says urllib3 doesn’t retry PATCH by default. That's true of the default policy, but the worker's session doesn't use the default: its adapter lists I checked with the urllib3 version in the repo (2.8.0): that policy already retries PATCH on 500–504, on connection errors and on read timeouts, up to 4 attempts. For the allowlisted statuses, the PR therefore swaps 4 attempts in the transport layer for 3 attempts in the app. The one real addition is retrying on 429. |
0a3ded2 to
9f344f3
Compare
* fix: retry transient submission status updates * fix: bound retries and exclude scoring side effects * fix: package retry helper in compute worker image
9f344f3 to
46c39f3
Compare
|
Contributors
Original contributors: @hanane-ca @kengorogoro-design
Issues resolved
Upgrade instructions
The instance need to be up-to-date. If only the worker is upgraded but not the instance, it could cause bugs.
Problems
Submissions stuck in an old status (Codabench worker is not robust to submission update fail #2569). If the API fails briefly when the worker sends a status update, the submission can stay stuck, for example in "Running".
"Finished" sent before the scores (Data integrity: score or leaderboard write fails after Finished status #2423). The worker marked a submission as Finished before uploading its scores and output. If the upload then failed, the submission still looked Finished but had no scores. The worker also never checked whether the score upload worked.
"Scoring" sent before the predictions. The same problem existed one step earlier. When the server receives "Scoring", it starts the scoring job right away. That could happen before the predictions were uploaded.
Some updates were retried when they should not be. The worker's main HTTP session retried every PATCH request on server errors (500, 502, 503, 504). Some PATCH requests are not safe to send twice: a repeated "Scoring" can start scoring twice. An earlier version of this description said these requests were sent only once, which was not true.
Changes
Compute worker
Retries
Score upload
New order of steps
Small cleanup
API
Checklist