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
Cancelled submissions use up submissions count quota #1764
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
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.
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)
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.
Activity
ihsaan-ullah commentedon Mar 6, 2025
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
curious-broccoli commentedon Mar 6, 2025
I guess that's true, but maybe it can be made so that submissions in "Submitting" state, don't count.
Didayolo commentedon Mar 20, 2025
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.
Didayolo commentedon Jun 27, 2025
Currently we count all submissions except the "Failed" ones:
codabench/src/apps/api/serializers/competitions.py
Line 184 in d237a83
Do we want to add the "Canceled" submissions to this exclusion?
ihsaan-ullah commentedon Jun 29, 2025
I think we need two stasuses:
CancelledandPre-Cancelledpre-cancelledand 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).Cancelledsubmissions will be treated the same (counted in the quota)Didayolo commentedon Jul 3, 2025
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.