View Categories

The Queue Monitor

Most of what RackHelm does after a customer presses Pay happens on a queue: provisioning an account, raising invoices, sending mail, syncing domains. System → Schedules → Queue Monitor is the screen that shows that work — what is waiting, what is running, what has finished and what has failed — and lets you retry a failed job. This article covers that screen. It is written for operators.

Opening it #

  1. Open System → Schedules → Queue Monitor, or go to /admin/queue-monitor.
  2. The page refreshes itself, so you can leave it open while you watch a batch of orders go through.

Note: The Queue Monitor is restricted to accounts that can manage roles — in a default install, a Super Admin. It is not covered by the ordinary staff permissions, so a Support Agent or Billing Manager cannot open it even if they can see everything else under System.

The Queue Monitor showing worker status, per-queue workload, recent jobs and failed jobs
The Queue Monitor. Everything on this page is live and refreshes on its own.

What the page shows #

Panel What it tells you
Supervisors Each running worker process by name, with its status and process id, plus the size of horizon.log and a Clear Log button. An empty panel, which reads No active supervisors found. Is Horizon running?, means nothing is processing your queues — jobs will pile up and nothing will run.
Workload One row per queue with how much is waiting on it. This is where a backlog shows first.
Recent jobs The last 20 jobs, each marked Pending, Processing or Completed, with the time it was pushed.
Failed jobs The last 20 recent failures from Horizon alongside the all-time count from failed_jobs, each row offering Retry and Delete, plus bulk Clear Failed Jobs (clears Horizon’s recent failures in Redis) and Reset All-Time Count (runs queue:flush) buttons.

Finding one job #

The recent-jobs list can be filtered and sorted, which matters when you are chasing one customer’s order through a busy queue.

  • Search matches the job name, so searching Provision narrows it to provisioning work.
  • Status filters to pending, processing or completed.
  • Queue filters to a single queue.
  • The Job, Status, Queue and Pushed At columns all sort, newest first by default.

Selecting a queue name opens that queue on its own, listing what is still pending on it by Job ID, Job Name and Pushed At. Selecting a job opens Job Details: its name, queue, status, and the pushed, completed or failed timestamps.

An application installed from a site’s Install Application window runs as InstallWebsiteApp. Jobs queued under its old name, InstallWordPressApp, before the upgrade to 2.0.3 still run. The install job is encrypted on the queue, so the new site’s admin password is not stored in plain text on the queue or in the failed-jobs list. The Software Inventory scan, nightly or from the Refresh button on its page, runs as CollectSoftwareInventory.

Note: Both lists are capped at 20. They are a live view of what is happening now, not a history — if you need to prove what ran last week, use the job’s own audit trail or the application log rather than this screen.

Retrying or clearing failed jobs #

  1. Find the job under Failed jobs.
  2. Read the Exception column first. A job that failed because a panel was unreachable is worth retrying; one that failed because a product is misconfigured will simply fail again.
  3. Select Retry to push the job back onto its queue, or use the row’s Delete button to dismiss an individual failure.
  4. Once you have investigated failures, use Clear Failed Jobs to clear Horizon’s recent-failure list in Redis or Reset All-Time Count to flush the historic failed_jobs table. Use Clear Log on the Supervisors card to truncate storage/logs/horizon.log in place without stopping Horizon.

Warning: Retry re-runs the whole job, not the part that failed. For provisioning work, check the panel first — if the account was created and the failure came afterwards, a retry can leave a duplicate behind. Orders → Pending Provisioning is the safer place to drive a stuck order from, because it understands what has already been done.

What to look at when something has not happened #

Symptom Where to look
A paid order has not provisioned Failed jobs first. If nothing has failed, check Supervisors — if that panel is empty, nothing is running the queue.
Supervisors reads No active supervisors found. Is Horizon running? Horizon is not running, so payments, provisioning, invoices and email all wait in the queue. Start it on the server with sudo supervisorctl start rackhelm-horizon. On an install made with an installer older than 2.0.3, Horizon was not set to start again when supervisor restarted: a reboot, an upgrade of the supervisor package or Ubuntu’s automatic security updates were enough to stop it. Updating to 2.0.3 or later fixes that setting.
Everything is slow, nothing has failed Workload. One queue carrying a large backlog will delay everything behind it.
Invoices or email have not gone out Recent jobs, filtered by name. If they are Pending and never move to Processing, the worker for that queue is not running.
The same job fails repeatedly after a retry The cause is in the job, not the queue. Read the exception and fix the underlying configuration before retrying again.
Long jobs stop part-way Registrar sweeps and panel provisioning run on their own longer-timeout lane. See Queue Workers, Horizon and the Scheduler.

The scheduler is a different thing #

The Queue Monitor shows individual jobs. What decides that a job should exist at all — generating invoices, chasing overdue services, syncing domains — is the scheduler, under System → Schedules. If a schedule never fires, nothing appears here to find. Check that screen first when work is not merely slow but entirely absent. See System Schedules and the Scheduler.

To see both sides at once, open Platform Settings → System Info (see System Info). It shows the scheduler’s last tick, taken from a heartbeat the scheduler records every minute, and whether Horizon is running. Its checks flag a scheduler that has stopped ticking, Horizon not running and failed jobs. It needs the View System Info permission, which only a Super Admin holds until you grant it to a role.