Skip to content

Cancelled submissions use up submissions count quota #1764

Closed

Description

@curious-broccoli

(Not urgent)

I'm running Codabench 1.17. locally. One submission got stuck in the queue so I as the submitter cancelled it, it was in the state "Submitting".

Is it intended that it still counts to the submission limit? Users also can't hard-remove it on their own.

Image

Activity

  1. added
    Discussion
    on Mar 6, 2025
  2. ihsaan-ullah commented on Mar 6, 2025

    @ihsaan-ullah
    Collaborator

    This has to be discussed. It is possible to exploit the quota if you cancel a submission while it is running. For example you print something important in the logs, then cancel the submission and prepare another submission with the logged info.

    Edit

    Maybe it is not that important because people can do the same trick to fail a submission intentionally

  3. curious-broccoli commented on Mar 6, 2025

    @curious-broccoli
    ContributorAuthor

    I guess that's true, but maybe it can be made so that submissions in "Submitting" state, don't count.

  4. Didayolo commented on Mar 20, 2025

    @Didayolo
    Member

    I think it makes sense that even submissions in "Submitting" state does fill up the submission limit. It can have some drawbacks, but it avoids spamming submission which may clutter the queue.

    Maybe the only case where we would like to avoid counting it, it's when the submission is cancelled while still on "Submitting" state. Not sure how easy this is to implement.

  5. added
    Enhancement
    on Mar 20, 2025
  6. Didayolo commented on Jun 27, 2025

    @Didayolo
    Member

    Currently we count all submissions except the "Failed" ones:

    qs = obj.submissions.filter(owner=user, parent__isnull=True).exclude(status='Failed')

    Do we want to add the "Canceled" submissions to this exclusion?

  7. ihsaan-ullah commented on Jun 29, 2025

    @ihsaan-ullah
    Collaborator

    I think we need two stasuses: Cancelled and Pre-Cancelled

    • If someone cancels a submission before it is sent to the worker we mark it as pre-cancelled and we will not count this one in the quota. (Maybe we also need a mechanism to delete pre-cancelled submissions after some time e.g. 1 month).
    • Cancelled submissions will be treated the same (counted in the quota)
  8. Didayolo commented on Jul 3, 2025

    @Didayolo
    Member

    We decided that cancelled submissions should count in the submissions quota, to avoid potential abuse. Organizers can remove cancelled submissions on demand of participants if it's useful. If many people complain about this we can think about it again. Thank you for your comprehension.

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

    DiscussionEnhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions