Adding schedule command to schedule cron jobs.
Adding example of a cron job. Removing functions since they've been moved elsewhere.
This commit is contained in:
parent
620586fa73
commit
2df6672acc
9 changed files with 428 additions and 278 deletions
28
test/hello_world_cron.yaml
Normal file
28
test/hello_world_cron.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
environment: "prod"
|
||||
role: "vagrant"
|
||||
name: "hello_world"
|
||||
cpu: 0.09
|
||||
ram: 64
|
||||
disk: 128
|
||||
instances: 1
|
||||
cronSchedule: "*/1 * * * *"
|
||||
cronCollisionPolicy: "CANCEL_NEW"
|
||||
thermos:
|
||||
- name: "bootstrap"
|
||||
cmd: "echo bootstrapping"
|
||||
- name: "hello_gorealis"
|
||||
cmd: "echo hello world from gorealis; sleep 10;"
|
||||
updateSettings:
|
||||
maxPerInstanceFailures: 1
|
||||
maxFailedInstances: 1
|
||||
minTimeInRunning: 1m
|
||||
rollbackOnFailure: true
|
||||
instanceRanges:
|
||||
- start: 1
|
||||
end: 4
|
||||
blockIfNoPulseAfter: 1m
|
||||
slaAware: false
|
||||
strategy:
|
||||
name: Batch
|
||||
groupSize: 2
|
Loading…
Add table
Add a link
Reference in a new issue