Skip to content

Commit

Permalink
added ability to sleep after Nth iteration using optional SLEEP_N env…
Browse files Browse the repository at this point in the history
… variable
  • Loading branch information
iizotov committed Dec 13, 2018
1 parent ac9d802 commit 072e069
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ do
dotnet loadgenerator.dll -c "$(var_expand CONNECTION_STRING_$i)" -b $(var_expand BATCH_$i) \
-t $(var_expand THROUGHPUT_$i) --terminate-after $(var_expand TERMINATE_AFTER_$i) \
-j -s $(var_expand SIZE_$i) --service $(var_expand SERVICE_$i)
echo "sleeping if SLEEP_$i is defined..."
/bin/sleep $(var_expand SLEEP_$i) || :
done

0 comments on commit 072e069

Please sign in to comment.