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
Re-run submissions without creating new submissions #1162
Before re-running my submissions from Iris competition, I had 31 submissions. After re-running the submissions, it incremented to 62 submissions.
I believe that it created new 31 submissions from the old ones. Then, everytime we re-run all submissions, Codabench will double the submissions number.
This is exactly what is happening in the rerun function
defre_run(self, task=None):
submission_arg_dict= {
'owner': self.owner,
'task': taskorself.task,
'phase': self.phase,
'data': self.data,
'has_children': self.has_children,
'is_specific_task_re_run': bool(task),
'fact_sheet_answers': self.fact_sheet_answers,
}
sub=Submission(**submission_arg_dict)
sub.save(ignore_submission_limit=True)
# No need to rerun on children if this is running on a specific taskifnotself.has_childrenorsub.is_specific_task_re_run:
self.refresh_from_db()
tasks= [sub.task]
else:
tasks=Task.objects.filter(pk__in=self.children.values_list('task', flat=True))
sub.start(tasks=tasks)
returnsub
Activity
[-]Re-run submission without creating new submissions[/-][+]Re-run submissions without creating new submissions[/+]ihsaan-ullah commentedon Sep 18, 2023
This is exactly what is happening in the rerun function
codabench/src/apps/competitions/models.py
Line 508 in 7b1742a
Didayolo commentedon Oct 4, 2023
I close this issue to keep track of it only in #1182.