Scheduled workflows
Run workflows automatically on a recurring schedule — every N minutes, hours, or days. Use for periodic tasks like cleanup, report generation, or inventory sync.
Setting up a scheduled workflow
- Create a new workflow
- Add a Scheduled run trigger node
- Configure the schedule interval and optional start time
- Build the rest of your workflow normally
- Activate the workflow
Schedule configuration
| Setting | Description |
|---|---|
| Interval | Minutes, hours, or days between runs |
| Start at | Specific time of day (for daily schedules) |
| Timezone | Which timezone to use (defaults to site timezone) |
How scheduling works
Scheduled workflows fire on pfw_cron_tick (every 5 minutes). The plugin checks if enough time has passed since the last run and dispatches the workflow if the interval has elapsed.
- Minimum interval: 5 minutes (cron granularity)
- Last run timestamp stored in workflow post meta
- If cron is unreliable, the heartbeat pixel helps fill the gap
Debugging
Check when a scheduled workflow last ran:
GET /pfw/v1/workflows/{id}
// Response includes `scheduled_last_run` in workflow meta