# Scheduler

Add one cron entry that runs Laravel's scheduler every minute:

```bash
* * * * * cd /path/to/justflows && php artisan schedule:run >> /dev/null 2>&1
```

Use absolute paths if the hosting environment has multiple PHP versions. The scheduler drives:

- health heartbeat and housekeeping;
- Gmail, Outlook, and scheduled workflow trigger polling;
- resuming workflows after wait nodes;
- workflow-state and Flowy-history retention;
- trial and subscription expiry/notification processing;
- eligible account deletions and the daily sitemap.

<Danger>
**A missing scheduler can look like many unrelated bugs.** Scheduled and email-triggered flows stop, wait nodes never resume, trial state becomes stale, and the admin health heartbeat reports a problem.
</Danger>
