Skip to content

Commit 4113cd1

Browse files
committed
only store leaderboard runs in DB
1 parent d554023 commit 4113cd1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/kernelbot/cogs/admin_cog.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,13 @@ async def submit_milestone(milestone, gpu, reporter):
434434

435435
with backend.db as db:
436436
for key, value in result.runs.items():
437+
# Only store LB runs in the database;
438+
# we still want to run test/benchmark to validate
439+
# that the code actually passes, but for all other
440+
# purposes we only need the leaderboard run
441+
if key != SubmissionMode.LEADERBOARD.value:
442+
continue
443+
437444
db.create_submission_run(
438445
milestone=milestone["id"],
439446
start=value.start,

0 commit comments

Comments
 (0)