Elaris Docs / Cron Scheduler

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

CommandPurpose
gmail:sync-inboxSync new Gmail messages and trigger automation.
gmail:poll-automationProcess 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.