You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: skills/flashduty/reference/automation.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,12 +29,14 @@ Prereq: `SKILL.md` read. Automations create AI SRE sessions on a schedule or thr
29
29
## Scheduling
30
30
31
31
- Default create behavior: enabled immediately. Use `--disabled` only if the user asks for a disabled Automation.
32
-
- No timezone flag is exposed by the current API. Build the requested wall-clock schedule in the account/customer timezone context.
32
+
- No timezone flag is exposed by the current API. Automation schedules are stored and sent as UTC cron.
33
+
- If the user asks for a local wall-clock schedule, first identify the intended timezone from the session context, runner `date`, or the user's wording. Convert that local time to UTC before calling the CLI. If the timezone is unclear, ask before creating or updating the schedule.
33
34
- Helper schedules:
34
-
-`--schedule hourly --at 00:15` -> minute 15 of every hour.
35
-
-`--schedule daily --at 09:30` -> every day at 09:30.
36
-
-`--schedule weekly --weekday mon --at 10:00` -> every Monday at 10:00.
37
-
- For exact minute-level control, use `--cron-expr '<minute> <hour> <day> <month> <weekday>'`.
35
+
-`--schedule hourly --at 00:15` -> minute 15 of every UTC hour.
36
+
-`--schedule daily --at 01:30` -> every day at 01:30 UTC.
37
+
-`--schedule weekly --weekday mon --at 02:00` -> every Monday at 02:00 UTC.
38
+
- For exact minute-level control, use `--cron-expr '<minute> <hour> <day> <month> <weekday>'` in UTC.
39
+
- Example: Asia/Shanghai 11:00 is UTC 03:00, so use `--schedule daily --at 03:00` or `--cron-expr "0 3 * * *"`.
38
40
- HTTP POST-only rule: pass `--http-post-trigger` without schedule flags. The CLI sends a placeholder cron and disables the schedule trigger.
39
41
40
42
## Hot flow - create from chat
@@ -44,7 +46,7 @@ fduty automation create \
44
46
--name "Daily SRE brief" \
45
47
--team-id <team-id> \
46
48
--schedule daily \
47
-
--at 09:30 \
49
+
--at 01:30 \
48
50
--prompt "Summarize yesterday's incidents, noisy alerts, and follow-up risks." \
0 commit comments