Максим Суханов
05/28/2026, 8:14 AMMarvin
05/28/2026, 8:14 AMMarvin
05/28/2026, 8:16 AMyaml
schedule:
cron: "0 9 * * 1"
timezone: "UTC"
or with an RRULE:
yaml
schedule:
rrule: "FREQ=WEEKLY;BYDAY=MO;BYHOUR=9;BYMINUTE=0;BYSECOND=0"
timezone: "America/New_York"
Then your automation can listen for something like prefect.flow-run.Completed from that deployment.
Relevant docs:
- Schedules
- Automations
- Event triggers
Option 2: Emit a custom event only on Mondays
If the event source is under your control, you can check the weekday in your flow/code and emit a custom event only when it's Monday. Then the automation listens for that custom event.
Conceptually:
python
from datetime import datetime
if datetime.now().weekday() == 0: # Monday
# emit custom event here
...
Important distinction
- Schedules handle calendar logic like "Monday at 9am"
- Automations handle reacting to events
So if your goal is "run this only on Mondays," use a schedule.
If your goal is "when event X happens, react only if today is Monday," you'd need to enforce that in the event-producing code or in the triggered flow logic.
If you want, I can show you the exact setup for either:
- a deployment + automation pattern, or
- a custom event pattern.Nate
05/28/2026, 3:54 PMMarvin
05/28/2026, 3:54 PMMarvin
05/28/2026, 3:59 PMNate
05/28/2026, 5:06 PM