Skip to content

Commit

Permalink
Keep the same repeating order for ease of experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffxy committed Oct 31, 2023
1 parent cdc2cb5 commit 5ce98a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workloads/IMDB_extended/run_repeating_analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ def noop(_signal, _frame):
runner_idx,
queries,
)
query_order = queries.copy()
prng.shuffle(query_order)
query_order_main = queries.copy()
prng.shuffle(query_order_main)
query_order = query_order_main.copy()

# Signal that we're ready to start and wait for the controller.
start_queue.put_nowait("")
Expand All @@ -139,8 +140,7 @@ def noop(_signal, _frame):
qidx = prng.choices(queries, list(query_frequency))[0]
else:
if len(query_order) == 0:
query_order = queries.copy()
prng.shuffle(query_order)
query_order = query_order_main.copy()

qidx = query_order.pop()
logger.debug("Executing qidx: %d", qidx)
Expand Down

0 comments on commit 5ce98a0

Please sign in to comment.