Skip to main content
Most failures in FaPost are silent by nature. A provider that cannot reach you does not complain; a queue that is not being worked simply grows. Knowing where to look matters more than having alerts on everything.

Horizon

Queues are processed by Horizon, and its dashboard is the first place to look when messages arrive but nothing happens. Supervisors are grouped so that the latency-critical work is isolated: inbound processing and conversation replies share dedicated processes, while broadcasts, logging and background synchronisation are worked elsewhere. Tenant removal, the preparation of Solutions’ tables and the Solutions’ own jobs (solution-jobs, only while a Solution is installed) have supervisors of their own. See Queues. On a single installation the dashboard is at /horizon for signed-in staff who hold the View operator screens permission; administrators hold every permission. The platform support user does not open it, whatever its role. Grant the permission to a custom role in the console’s role form when someone who is not an administrator should see the queues. In host tenancy mode the dashboard is served on the base domain and on declared platform subdomains only, never on a tenant’s host, and Core keeps it closed for everyone, tenant administrators included, until an operator package answers for it; see Several tenants. What to watch:
  • Wait time on flow.execution — this is how long a contact waits before the assistant even begins. It should be near zero.
  • Failed jobs — a rising count on flow.execution means inbound messages are not being answered: replies are sent from inside that job.
  • Throughput on messaging.broadcast — expected to spike; it is the one queue whose depth is not alarming.
An installation without Horizon running accepts messages and never answers them. Everything looks healthy from the browser — the site serves, the panel works — because nothing about the web tier depends on the workers. See Services.

The scheduler

Fifteen scheduled tasks matter, and all fail silently if the scheduler is not running: The monthly one is the trap: it fails at a month boundary, weeks after the scheduler stopped, and presents as flow logging breaking for no apparent reason.

Conversation retention

The conversation transcript is kept forever by default. To cap it, set the platform setting conversation.retention_days (a number of days, 0 keeps forever) in Platform settings, or in host mode with php artisan platform:settings:set conversation.retention_days 90. CONVERSATION_RETENTION_DAYS in .env is only its default. The daily conversations:prune task then drops, in every tenant schema, the monthly conversation_messages partitions that lie wholly older than that many days. Whole months only, so a message lives between that many days and about 31 days longer.
Pruning is irreversible. A dropped partition is gone for good; only a database backup brings it back. Preview first with php artisan conversations:prune --dry-run.
Conversation threads (the inbox rows and their metadata) and downloaded media are not touched. With the variable unset the task does nothing.

Webhook routing

Inbound routing resolves through Redis rather than the database, which makes the registry a cache with a source of truth behind it — and caches drift.
Reports and optionally repairs inconsistency between Redis and the database.
Rebuilds the registry from the database. Run it after a Redis flush, a restore, or a move to new Redis infrastructure — without it, channels exist and no message resolves.
Checks the ingress end to end: which driver is active, whether Redis is reachable, whether the key prefix matches, whether published specs agree with the adapters, and how many channels still point at a previous address. Run it first whenever webhooks are not arriving.

Health page

The admin panel has a System → Health page, open to anyone with the “View system” permission (administrators have it). On an installation that serves a single organisation it shows whether live updates, webhook intake and the background queues work right now. On a multi-tenant installation (host mode) the page is there for a tenant’s users with the same permission, but it shows only that tenant’s slice: the state of live updates (Reverb) and the number of the tenant’s open live channels, and the state of the webhook gateway and how many of the tenant’s channels are still on the old address. There are no connection counts, addresses, published specifications, reasons or a Queues card, because those belong to the whole installation. The sections below describe the full page of a single-organisation installation. The page asks again every 15 seconds over plain HTTP, never over Reverb, so it keeps working when the websocket is what has failed. Each of its three cards, Live updates (Reverb), Webhook gateway and Queues (Horizon), is in exactly one state: While the first answer is on its way, the cards show a loading state. If a refresh fails, the page keeps the last answer on screen, marks it as out of date, and keeps trying. The Reverb card also shows the connections and channels Reverb holds. The gateway card shows the address the application asks, whether the published specifications agree with the adapters, and how many channels still deliver to the address they were registered with. A channel on an old address keeps working, more slowly, so it is a figure to read and not a reason to call the gateway down. The Queues card reads Horizon’s own metrics. It is up while Horizon is running and down when no Horizon instance has reported in or all of them are paused, since queued jobs are then not being processed. It is unknown when Redis cannot be read, and switched off when QUEUE_CONNECTION is not redis. For each named queue it shows how long the queue would take to clear, highlighted with the words “Long wait” once it reaches Horizon’s long-wait threshold (horizon.waits, 60 seconds unless set), and the jobs per minute processed since the last Horizon snapshot. A queue that no running supervisor serves shows no wait rather than a zero. The card also counts failed jobs over Horizon’s recent-failed window (horizon.trim.recent_failed, 7 days by default). The per-minute figures depend on the horizon:snapshot task above: the card says when the current window began, with the date when it is not today, so a window that has stayed open for days shows it.

Per-assistant health

Each assistant console shows two counters that should stay boring: live sessions and errors in the last 24 hours. Live sessions climbing without traffic to explain it means conversations start and do not finish — usually a flow waiting at an input nobody answers. Errors above zero means at least one node failed; Flow logs says which.

Application logs

Laravel’s log carries application errors. Telescope is no longer part of Core. It comes with the optional fapost/monitoring package, from the release after v0.1.3, where it is off by default. Switch it on with MONITORING_TELESCOPE_ENABLED=true for as long as it takes to look at a problem: it records requests with their contents. Only whoever the operator access contract lets in can open it, and it masks secrets such as the support access token.
On a multi-tenant production installation (host mode, a hosted service), keep Telescope off. It stores the payloads of exceptions and failed jobs — tenants’ customer data — in the landlord database, and it writes on the hot path. Watch errors in Sentry or the logs, load in Pulse, and queues in Horizon and the queue card of the health page. Switch Telescope on only while you investigate an incident, and off again afterwards. On a self-hosted single installation it is the owner’s call.

Backpressure

Provider rate limits are handled preventively rather than as a reaction to being rejected. The relevant settings are per-tenant: message rate per chat, broadcast chunk size, and how hard the platform pushes when a provider strains. A tenant admin sets them under Tenant settings. The message rate per chat is picked up by the next job without a restart; every tenant starts at 30 per minute. MESSAGING_RATE_LIMIT_PER_MINUTE no longer sets a tenant’s rate — it is only a fallback for sends outside a tenant. A provider complaining about rate is a signal to lower those, not to add retries — a retry storm against a limit is the same request made worse.