You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_update_submission() has no retry and _update_status() silently swallows exceptions, causing permanent submission loss #2415
_update_submission() in compute_worker/compute_worker.py performs a single HTTP PATCH to report submission status back to Django. On any non-200 response, it raises SubmissionException immediately with no retry:
The caller _update_status() then catches all exceptions and silently discards them:
try:
self._update_submission(data)
exceptExceptionase:
# Always catch exception and never raise errorlogger.exception(f"Failed to update submission status to {status}: {e}")
This means a single transient network error (502, timeout, connection reset) permanently loses the submission result. The compute worker moves on to the next job as if nothing happened, while Django never receives the status=Finished PATCH. The submission stays stuck in Scoring or Running forever.
How it happens
Compute worker finishes scoring and sends PATCH /api/submissions/{id}/ {status: Finished}
The network returns a transient error (502, timeout, connection reset)
Activity