-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.yaml
More file actions
35 lines (35 loc) · 1.34 KB
/
example.yaml
File metadata and controls
35 lines (35 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
default: ping-demo
tasks:
google-ping:
run: ping google.com
timestamps: true
cloudflare-ping:
run: ping 1.1.1.1
github-ping:
run: ping github.com
short-lived:
run: bash -c 'echo "Starting short-lived task"; sleep 5; echo "Task exiting after 5 seconds"; exit 1'
require: [setup-task]
auto-restarting:
run: bash -c 'echo "Starting auto-restarting task"; echo "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco."; sleep 3; echo "Task exiting after 3 seconds"'
autorestart: true
setup-task:
ensure: true
healthcheck-demo:
run: bash -c 'echo "Starting service..."; sleep 2; echo "Service ready"; while true; do sleep 1; done'
healthcheck:
cmd: "true"
interval: 1
healthcheck-tool-demo:
run: bash -c 'echo "Waiting..."; sleep 5; echo "Starting port listener..."; nc -l 12345; sleep 5; echo "Done"'
autorestart: true
healthcheck:
tool: is-port-open 12345
interval: 0.5
healthcheck-http-demo:
run: bash -c 'echo "Waiting for google.com to be reachable..."; sleep infinity'
healthcheck:
tool: http-get-ok https://www.google.com
interval: 1
ping-demo:
require: [google-ping, cloudflare-ping, short-lived, auto-restarting]