Skip to content

Commit

Permalink
schedule with randomized list of countries so we dont start we same a…
Browse files Browse the repository at this point in the history
…lways
  • Loading branch information
rgaudin committed Nov 21, 2024
1 parent c9980f9 commit 715bc66
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/mirrors_qa_backend/cli/scheduler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import datetime
import random
import time

from mirrors_qa_backend import logger
Expand Down Expand Up @@ -65,7 +66,9 @@ def main(
continue

# Create a test for each mirror from the countries the worker registered
for country in idle_worker.countries:
countries = list(idle_worker.countries)
random.shuffle(countries)
for country in countries:
for mirror in mirrors:
new_test = create_test(
session=session,
Expand Down

0 comments on commit 715bc66

Please sign in to comment.