Skip to content

Re-run submissions without creating new submissions #1162

Closed

Description

@dtuantran

Before re-running my submissions from Iris competition, I had 31 submissions. After re-running the submissions, it incremented to 62 submissions.

image

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.

Activity

  1. changed the title [-]Re-run submission without creating new submissions[/-] [+]Re-run submissions without creating new submissions[/+] on Sep 18, 2023
  2. ihsaan-ullah commented on Sep 18, 2023

    @ihsaan-ullah
    Collaborator

    This is exactly what is happening in the rerun function

    def re_run(self, task=None):
            submission_arg_dict = {
                'owner': self.owner,
                'task': task or self.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 task
            if not self.has_children or sub.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)
            return sub

    def re_run(self, task=None):

  3. added
    Discussion
    on Sep 19, 2023
  4. Didayolo commented on Oct 4, 2023

    @Didayolo
    Member

    I close this issue to keep track of it only in #1182.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions