Skip to content

Submissions - add organizer Resubmit to run a submission on the current phase tasks - #2644

Merged
Didayolo merged 1 commit into
codalab:resubmit-current-tasksfrom
bruAristimunha:resubmit-current-tasks
Oct 20, 2026
Merged

Didayolo merged 1 commit into
codalab:resubmit-current-tasksfrom
bruAristimunha:resubmit-current-tasks

Conversation

@bruAristimunha

@bruAristimunha bruAristimunha commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Re-run keeps the task the submission originally ran on. After an organizer replaces a task of an active phase, a re-run therefore still scores on the old task and the leaderboard shows n/a. #2624 changed re-run itself to use the current task, which alters re-run semantics; this PR adds a separate Resubmit instead and leaves re-run untouched.

  • Submission.resubmit(): new submission with the same upload, owner, participant, fact sheet answers, organization and selected groups, run through the existing run() on the current phase tasks (children are created as for a normal submission)
  • POST /api/submissions/{id}/resubmit_submission/ and resubmit_many_submissions/, with the same organizer / finished-status checks as re-run
  • Submissions tab (organizer): a "Resubmit on current tasks" icon per submission and a "Resubmit selected submissions on current tasks" bulk option
  • Test: after a phase task swap, resubmit() runs on the new task while re_run() still runs on the original one

Pairs with #2642, which flags the submissions that need resubmitting.

Issues this PR resolves

A checklist for hand testing

  • Upload tests/test_files/competitions/competition_v2_wheat_results.zip, submit tests/test_files/submissions/submission_v2_wheat_results.zip
  • As organizer, create a new task and set it as the phase task instead of the old one
  • Click the Resubmit icon (or select the submission and apply "Resubmit selected submissions on current tasks"): a new submission by the same participant is created and scored on the new task
  • Re-run on the old submission still runs on the original task

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work

…nt phase tasks

Re-run keeps the task the submission originally ran on, so after an organizer
replaces a task of an active phase the re-run scores still show as n/a.
Resubmit creates a fresh submission with the same upload and runs it on the
current phase tasks, as if the participant submitted it again.

Resolves codalab#2636
@Didayolo

Didayolo commented Oct 9, 2026

Copy link
Copy Markdown
Member

Hi @bruAristimunha,

I made a PR to change the behavior of the re-run so it runs the current task:

But indeed, that could be two separate actions. We'll investigate this question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-Run should include information on the state of the submission being re-run (task/dataset used etc...)

2 participants