Skip to main content
LocalTradeBook

Development

Events and the scheduled jobs

What the platform records, and what runs every minute.

Events

Whenever something happens that a CRM would care about (a claim, a newsletter sign-up, a lead) the platform records an event in the same database transaction as the change. If the account has a GoHighLevel connection, a delivery job sends it there. With no connection the event is only recorded and nothing else is affected.

Scheduled jobs

There are no always-on workers. One route, POST /api/cron/tick, is called every minute by the server's timer with a secret. It runs each job that is due (email delivery, import resume, newsletter sends, reminders, onboarding emails) with its own time limit and records the result. Platform owners see every job's last run under Scheduled jobs; a warning shows when nothing has called the tick for five minutes.

If you host your own copy

The hosting runbook in the app's docs folder covers DNS, the single install command, the certificate checks and how to undo them.

Events and the scheduled jobs | LocalTradeBook