Scheduled jobs

Workflow 29 · Cron · Queues · System status

Some work runs on its own, on a schedule: expiring quotes, overdue invoices, regular visits, emails and Xero.

System status shows when the schedule last ran and warns when it has stopped.

  • Administrator or Head Office (Head Office reads; only the Administrator runs cron)

The screens show sample records as they were captured; on the demo they may have moved on.

Administrator

System status: Cron

Head Office

System status: Cron

1Step 1 of 3 · workflow step 01

  1. Last run
  2. OK, Warning or Error

Enlarge, then scroll

Open illustrated screen ↗Full image ↗

The system does this
  • Every few minutes: send queued emails, book the visits of regular schedules, create first visits for accepted quotes, check Xero
  • Every day: expire quotes past their date, mark invoices overdue, tell the office once
Administrator · Scheduled jobs01

A warning or an error

Head Office

A warning or an error

2Step 2 of 3 · workflow step 02

  1. Read what Cron last ran says
  2. Items waiting in each queue
  3. Ask the administrator to check the scheduler

Warning after 2 days without a run, Error after 14: quote expiry, overdue invoices, regular visits and emails wait meanwhile.

Enlarge, then scroll

Open illustrated screen ↗Full image ↗

Administrator · Scheduled jobs02

Run cron, then check again

Administrator

Run cron, then check again

3Step 3 of 3 · workflow step 03

  1. Configuration, Cron: Run cron
  2. System status: Cron last ran is now
  3. Items waiting go down

Run cron is the one thing to do by hand: it works the same queues as the scheduler, each item once, so no email goes twice and no visit is booked twice. Never empty a queue. Still not running? The health-check runbook (H02 runbooks).

Enlarge, then scroll

Open illustrated screen ↗Full image ↗

Check

Cron runs regularly; System status reads OK

Administrator · Scheduled jobs03
1 / 4
Privacy Terms