From 5ce98a0224e59745bbeb2731101bc2a818fb7895 Mon Sep 17 00:00:00 2001 From: Geoffrey Yu Date: Tue, 31 Oct 2023 21:27:47 +0000 Subject: [PATCH] Keep the same repeating order for ease of experiments --- workloads/IMDB_extended/run_repeating_analytics.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/workloads/IMDB_extended/run_repeating_analytics.py b/workloads/IMDB_extended/run_repeating_analytics.py index bb886790..7663fec9 100644 --- a/workloads/IMDB_extended/run_repeating_analytics.py +++ b/workloads/IMDB_extended/run_repeating_analytics.py @@ -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("") @@ -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)