autotasker/config.example.yaml

46 lines
837 B
YAML
Raw Normal View History

2024-07-28 16:34:03 +00:00
instance:
name: Example organization
logo_uri: https://example.org/logo.png
executor:
environment:
SUPER_COOL_DEFAULT_ENV: 438548
2024-07-21 15:03:37 +00:00
tasks:
2024-07-28 16:34:03 +00:00
do_magic_stuff:
2024-07-21 15:03:37 +00:00
name: Do magic incantation
2024-07-28 16:34:03 +00:00
environment:
2024-07-21 15:03:37 +00:00
PYTHONUNBUFFERED: "1"
SIMULATION_SPEED: 0.4
SIMULATION_MAX_ITERATIONS: 50
2024-07-21 15:03:37 +00:00
command:
- /usr/bin/python3
2024-07-28 16:34:03 +00:00
- /path/to/autotasker/examples/do_something_1.py
reindex_db:
2024-07-21 15:03:37 +00:00
name: Reindex the whole database
env: {}
command:
- ls
- /etc/fstab
2024-07-28 16:34:03 +00:00
schedule:
hours: 1
clean_up:
name: Clean up things
env: {}
command:
- cat
- /etc/environment
schedule:
"0 * * * * *"
webhooks:
- id: 1
name: "Trigger magic stuff"
token: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
target_tasks:
- do_magic_stuff
debounce_secs: 10
2024-07-21 15:03:37 +00:00