Cron Scheduler
Production automation depends on scheduled commands for Gmail syncing, polling, and periodic cleanup.
Laravel scheduler
Run the scheduler every minute on the production server:
* * * * * cd /path/to/elaris && php artisan schedule:run >> /dev/null 2>&1
Important commands
| Command | Purpose |
|---|---|
gmail:sync-inbox | Sync new Gmail messages and trigger automation. |
gmail:poll-automation | Process enabled Gmail automation settings. |
Verification
- Check scheduler logs after deployment.
- Confirm new Gmail messages are saved.
- Confirm webhook attempts are logged.
- Confirm failed jobs are visible to the team.
