github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/internal/fs/cheats/governor.md (about) 1 # further documentation https://choria.io/docs/streams/governor/ 2 3 # to create governor with 10 slots and 1 minute timeout 4 choria governor add cron 10 1m 5 6 # to view the configuration and state 7 choria governor view cron 8 9 # to reset the governor, clearing all slots 10 choria governor reset cron 11 12 # to run long-job.sh when a slot is available, giving up after 20 minutes without a slot 13 choria governor run cron --max-wait 20m long-job.sh 14 15 # to run a cron job across a pool of machines once only per hour 16 choria governor add cron 1 59m 3 17 choria governor run cron --max-wait 10s --max-per-period long-job.sh 18 19 # list known governors 20 choria governor list