Skip to content

Commit 61c7484

Browse files
committed
wb | allow workloads in "idle" scenarios (ignores wait_pools flag)
1 parent 5498f85 commit 61c7484

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nix/workbench/scenario.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,15 @@ case "$op" in
3535
scenario_setup_exit_trap "$dir"
3636
# Trap start
3737
############
38+
for workload in $(jq -r '.workloads[] | select(.before_nodes == true) | .name' "$dir"/profile.json)
39+
do
40+
backend start-workload-by-name "$dir" "$workload"
41+
done
3842
backend start-nodes "$dir"
43+
for workload in $(jq -r '.workloads[] | select(.before_nodes == false) | .name' "$dir"/profile.json)
44+
do
45+
backend start-workload-by-name "$dir" "$workload"
46+
done
3947
backend wait-pools-stopped "$dir"
4048
# Trap end
4149
##########

0 commit comments

Comments
 (0)