Skip to content

Commit

Permalink
Test jobs script
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jul 29, 2019
1 parent 4874ef8 commit 19723b2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/jobs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

for i in {1..25}
do
curl localhost:8080/v1/jobs -d "{
\"name\": \"test_job_$i\",
\"schedule\": \"@every $(($RANDOM%60+1))m\",
\"executor\": \"shell\",
\"executor_config\": {
\"command\": \"echo 'run job $i'\"
}
}"
done

0 comments on commit 19723b2

Please sign in to comment.