Last active
August 24, 2016 13:37
-
-
Save marks/1fa83d9a5d69de7732a2911c1c86d884 to your computer and use it in GitHub Desktop.
Quick bash script with CSV file to queue up multiple Domino runs. Run this with `sh kick_off_runs.sh runs_to_do.csv`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IFS="," | |
while read file args | |
do | |
echo "++ Kicking off Domino run with 'domino run $file $args' ++" | |
domino run --no-sync $file $args | |
done < $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main.py | ASSAULT Friday | |
---|---|---|
main.py | ASSAULT Tuesday | |
main.py | VANDALISM Wednesday |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sh kick_off_runs.sh runs_to_do.csv | |
++ Kicking off Domino run with 'domino run main.py ASSAULT Friday' ++ | |
+-------------------------------------------+ | |
| Warning: Not synchronizing local changes. | | |
+-------------------------------------------+ | |
Run for project marks/crimemaps-fork1 started. You can view it here: | |
https://app.dominodatalab.com/u/marks/crimemaps-fork1/runs/57bda1fc80f4fe61775a1a42 | |
++ Kicking off Domino run with 'domino run main.py ASSAULT Tuesday' ++ | |
Run for project marks/crimemaps-fork1 started. You can view it here: | |
https://app.dominodatalab.com/u/marks/crimemaps-fork1/runs/57bda20580f4fe61775a1a44 | |
++ Kicking off Domino run with 'domino run main.py VANDALISM Wednesday' ++ | |
+-------------------------------------------+ | |
| Warning: Not synchronizing local changes. | | |
+-------------------------------------------+ | |
Run for project marks/crimemaps-fork1 started. You can view it here: | |
https://app.dominodatalab.com/u/marks/crimemaps-fork1/runs/57bda20e489465196851cc8c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment