Spaces:
Running
제출 한도 문의: 인정된 발견이 한도에서 빠지지 않습니다 / Daily limit: accepted findings still count until the Space restarts
안녕하세요. 제출 한도에 대해 확인을 부탁드립니다.
규칙에는 '인정된 발견은 하루 한도에 포함되지 않는다'고 되어 있습니다. 실제로는 인정 판정이 난 뒤에도 한도가 돌아오지 않습니다.
공개된 rt_challenge.py 의 submit() 은 used = max(_daily[key], _used_today(user)) 로 계산합니다. 장부에서 세는 _used_today 는 인정된 제출을 빼지만, 메모리에 있는 _daily 값은 제출할 때마다 오르기만 하고 인정 판정 뒤에도 줄지 않습니다. 그래서 하루에 10건을 내면 인정 건수와 관계없이 Space 가 다시 시작하거나 날짜가 바뀔 때까지 'daily limit reached (10 per day)' 가 나옵니다.
제 경우 11-19 (UTC) 에 낸 10건 가운데 8건이 인정됐고, 그 뒤의 제출은 한도로 거부됩니다. 11-18 에도 같았습니다.
의도하신 동작이면 규칙 문구만 알려 주시면 그대로 따르겠습니다. 감사합니다.
Hello. I would like to ask about the daily submission limit.
The rules say that accepted findings do not count toward the daily limit. In practice the limit does not come back after a finding is accepted.
In the public rt_challenge.py, submit() uses used = max(_daily[key], _used_today(user)). The ledger count _used_today leaves out accepted submissions, but the in-memory _daily value only goes up with each submission and does not go down after a judgement. So once an account has sent 10 submissions in a day, it gets 'daily limit reached (10 per day)' until the Space restarts or the UTC day changes, whatever number was accepted.
In my case 8 of my 10 submissions of 11-19 (UTC) were accepted and later submissions are refused by the limit. The same happened on 11-18.
If this is the intended behaviour, I will follow it as it is. Thank you.
정확히 짚어 주셨습니다. 의도한 동작이 아니라 버그였고, 방금 고쳐 배포했습니다.
이제 하루 한도는 장부를 기준으로 셉니다. 인정된 발견은 규칙대로 한도에서 빠지며, 메모리 값은 장부 조회가 실패할 때만 쓰는 보조 수단으로 바꿨습니다. Space 도 다시 시작해 두어 지금 바로 한도가 풀려 있습니다. 11-19 기준 인정 8건이면 한도는 2만 차지합니다. 좋은 지적 감사합니다.
You are exactly right. This was a bug, not the intended behaviour, and it is now fixed and deployed.
The daily limit is counted from the ledger, so accepted findings are excluded as the rule states, and the in-memory counter is now only a fallback for when the ledger read fails. The Space was also restarted, so your limit is already free now. With 8 accepted on 11-19, only 2 count against the limit. Thank you for the precise report.
빠른 수정 감사합니다. 수정된 코드에서 한 가지를 더 알려 드립니다.
_used_today() 가 장부 목록을 30초 캐시(_subs_cache)로 읽어서, 30초 안에 연속으로 제출하면 사용량이 늘지 않습니다. 저는 04:38~04:39 UTC 에 9건을 연속 제출했는데 응답의 남은 횟수가 7, 6, 6, 6, 6, 6, 1, 1, 1 이었습니다. 그 결과 판정 전의 미인정 제출이 한때 11건(불인정 2 + 대기 9)이 되어 한도 10 을 1건 넘었습니다. 의도한 것이 아니고, 그 뒤로는 서버 응답이 아니라 직접 센 수만큼만 내고 있습니다.
업로드가 성공한 뒤 새 파일 이름을 _subs_cache["files"] 에 바로 추가하면 해결될 것 같습니다.
Thank you for the quick fix. One more thing in the fixed code.
_used_today() reads the ledger list through a 30-second cache (_subs_cache), so the count does not go up for submissions sent within the same 30 seconds. I sent 9 submissions at 04:38-04:39 UTC and the remaining number in the answers was 7, 6, 6, 6, 6, 6, 1, 1, 1. For a short time I therefore had 11 not-yet-accepted submissions (2 not accepted + 9 pending), one above the limit of 10. This was not intended; since then I send only as many as my own count allows, not what the server answer says.
Adding the new file name to _subs_cache["files"] right after a successful upload would probably fix it.
정확한 신고 감사합니다. 확인했고 고쳤습니다.
업로드가 성공하면 그 즉시 새 제출 파일명을 30초 장부 캐시(_subs_cache["files"])에 넣도록 바꿨습니다. 이제 같은 30초 안에 연달아 보내도 _used_today 가 그 제출을 바로 반영하므로, 한도가 정확히 계산되고 잠깐이라도 한도를 넘는 일이 없습니다. 지적해 주신 방식 그대로입니다. 방금 배포했고 Space 도 다시 시작했습니다. 두 가지 모두 짚어 주셔서 고맙습니다.
Thank you for the precise report. Confirmed and fixed.
On a successful upload we now add the new submission file name to the 30 second ledger cache (_subs_cache["files"]) at once, so _used_today reflects that submission immediately. A burst inside one 30 second window now counts correctly, the limit is computed accurately, and it is never briefly exceeded. This is exactly the approach you suggested. It is deployed and the Space has been restarted. Thank you for catching both.