Spaces:
Running
Running
Try to keep on 10 check significance tasks
Browse files
server.py
CHANGED
@@ -282,10 +282,17 @@ class LeaderboardServer:
|
|
282 |
result_url[competitor_id] = check_significance_send_task(new_model_file, self.submission_id_to_file[competitor_id])
|
283 |
result_inverse_url[competitor_id] = check_significance_send_task(self.submission_id_to_file[competitor_id], new_model_file)
|
284 |
|
285 |
-
|
|
|
286 |
result = check_significance_wait_for_result(result_url.pop(competitor_id))
|
287 |
result_inverse = check_significance_wait_for_result(result_inverse_url.pop(competitor_id))
|
288 |
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
new_tournament[new_submission_id][competitor_id] = {
|
290 |
task: data["significant"] for task, data in result.items()
|
291 |
}
|
|
|
282 |
result_url[competitor_id] = check_significance_send_task(new_model_file, self.submission_id_to_file[competitor_id])
|
283 |
result_inverse_url[competitor_id] = check_significance_send_task(self.submission_id_to_file[competitor_id], new_model_file)
|
284 |
|
285 |
+
while next_competitors:
|
286 |
+
competitor_id = next_competitors.pop(0)
|
287 |
result = check_significance_wait_for_result(result_url.pop(competitor_id))
|
288 |
result_inverse = check_significance_wait_for_result(result_inverse_url.pop(competitor_id))
|
289 |
|
290 |
+
if rest_of_competitors:
|
291 |
+
new_competitor_id = rest_of_competitors.pop()
|
292 |
+
next_competitors.append(new_competitor_id)
|
293 |
+
result_url[new_competitor_id] = check_significance_send_task(new_model_file, self.submission_id_to_file[new_competitor_id])
|
294 |
+
result_inverse_url[new_competitor_id] = check_significance_send_task(self.submission_id_to_file[new_competitor_id], new_model_file)
|
295 |
+
|
296 |
new_tournament[new_submission_id][competitor_id] = {
|
297 |
task: data["significant"] for task, data in result.items()
|
298 |
}
|