-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from gjcarneiro/config-includes
add support for 'include' config option #38
- Loading branch information
Showing
10 changed files
with
207 additions
and
94 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
web: | ||
listen: | ||
- http://127.0.0.1:8080 | ||
- unix:///tmp/yacron.sock | ||
|
||
defaults: | ||
shell: /bin/bash | ||
|
||
concurrencyPolicy: Allow | ||
# Allow (default): allows concurrently running jobs | ||
# Forbid: forbids concurrent runs, skipping next run if previous hasn’t finished yet | ||
# Replace: cancels currently running job and replaces it with a new one | ||
|
||
failsWhen: | ||
producesStdout: false | ||
producesStderr: true | ||
nonzeroReturn: true | ||
|
||
onPermanentFailure: | ||
report: | ||
sentry: | ||
dsn: | ||
value: | ||
extra: | ||
foo: bar | ||
zbr: 123 | ||
level: warning | ||
mail: | ||
from: example@foo.com | ||
to: example@bar.com | ||
smtpHost: 127.0.0.1 | ||
smtpPort: 10025 | ||
subject: Cron job '{{name}}' {% if success %}completed{% else %}failed{% endif %} | ||
body: | | ||
{{stderr}} | ||
(exit code: {{exit_code}}) | ||
environment: | ||
- key: FOO | ||
value: foo | ||
- key: BAR | ||
value: bar | ||
|
||
statsd: | ||
host: localhost | ||
port: 8125 | ||
prefix: my.cron.jobs.prefix.test01 |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
include: | ||
- test_included_child.yaml | ||
|
||
jobs: | ||
- name: test-03 | ||
command: | | ||
sleep 10 | ||
echo "all done." | ||
schedule: | ||
minute: "*/5" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
defaults: | ||
shell: /bin/ksh | ||
|
||
jobs: | ||
- name: common-task | ||
command: | | ||
echo "hello" | ||
schedule: | ||
minute: "*" | ||
captureStderr: true | ||
executionTimeout: 1 | ||
killTimeout: 0.5 |
Oops, something went wrong.