25 lines
947 B
HCL
25 lines
947 B
HCL
|
|
# pi_wake_agent schedules (cronicle backend).
|
||
|
|
#
|
||
|
|
# IMPORTANT (see AGENTS.md): on this host the cronicle daemon is NOT running
|
||
|
|
# (not supervised), so these schedules are INERT. The LIVE scheduler is system
|
||
|
|
# crnd via crontab (see `crontab -l`). This HCL is only served when
|
||
|
|
# `cronicle run --path <this-file>` is supervised. The pi_test 20m wake is
|
||
|
|
# installed into crontab as well, so it actually fires regardless.
|
||
|
|
|
||
|
|
schedule "pi_wake_pi_test_20m" {
|
||
|
|
cron = "@every 20m"
|
||
|
|
|
||
|
|
task "wake" {
|
||
|
|
command = ["/mnt/dolphinng5_predict/pi_wake_agent.py", "--run", "--interval", "20m", "--sessions", "pi_test", "--pane", "terminal_1", "--msg", "Please carefully continue your work"]
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
# Sample multi-session schedule (kept from the original config).
|
||
|
|
schedule "pi_wake_s1_s2_1h" {
|
||
|
|
cron = "@every 1h"
|
||
|
|
|
||
|
|
task "wake" {
|
||
|
|
command = ["/mnt/dolphinng5_predict/pi_wake_agent.py", "--run", "--interval", "1h", "--sessions", "s1,s2", "--msg", "test"]
|
||
|
|
}
|
||
|
|
}
|