EvalAI icon indicating copy to clipboard operation
EvalAI copied to clipboard

Fix: Submissions stuck in submitted status (#4963)

Open pashaarshad opened this issue 10 months ago • 0 comments

This PR fixes the issue where submissions get stuck in the 'submitted' status and never transition to final states.

Changes:

  • Add utility functions to detect and handle stale submissions
  • Add management command 'handle_stale_submissions' for admins
  • Add API endpoint for challenge hosts to manage stale submissions
  • Improve error handling in submission worker to prevent stuck states
  • Add comprehensive tests for new functionality

Root causes addressed:

  • Silent exception handling that left submissions in intermediate states
  • Missing input file validation before processing
  • No mechanism to detect/recover stuck submissions

Fixes #4963

IMPORTANT NOTES (please read, then delete):

  • The PR title should start with "Fix #bugnum: " (if applicable), followed by a clear one-line present-tense summary of the changes introduced in the PR. For example: "Fix #bugnum: Introduce the first version of the collection editor.".

  • Please make sure to mention "#bugnum" somewhere in the description of the PR. This enables GitHub to link the PR to the corresponding bug.

Please also make sure to follow the style rules.

pashaarshad avatar Jan 30 '26 16:01 pashaarshad