Background Workers

A lot of CloudPeek's value comes from work that happens automatically, around the clock, without anyone pressing a button. That work is done by background workers, separate processes that run continuously alongside the web app and API.

This page explains, in plain language, what the workers are and how they fit together. You don't configure most of this directly; it's useful background for understanding why incidents arrive already analysed.

What the workers do

Think of the workers as a night shift that never clocks off. Between them they:

  1. Pull in alerts from your connected tools (the intake worker).
  2. Triage each new incident with AI (the triage worker).
  3. Run the follow-up steps triage suggested, using read-only access to your tools (the follow-up worker).
  4. Hunt for patterns across many incidents (the threat-hunting worker).
  5. Keep the Wiki current by turning what's observed into knowledge-base updates (the wiki auto-indexer).
  6. Keep the live UI feed reliable and perform housekeeping.

The workers at a glance

WorkerWhat it doesRoughly how often
Incident SyncPolls connected alert sources, dedupes, creates incidents, queues them for triageevery ~60s
TriageRuns each pending incident through the AI triage pipelineevery ~30s
Triage RequeueSafety net: re-queues any incident that slipped throughevery ~5 min
Follow-upExecutes the investigation steps triage produced (read-only)every ~60s
Threat HuntingScans recent incidents for cross-incident patternsevery ~60 min
Wiki Auto-IndexerTurns observed entities into Wiki page updatesevery ~5 min
Event Retry / HealthKeeps the live event feed reliableevery ~30s / 5 min

These intervals are sensible defaults that an operator can adjust per environment.

How it flows together

How automatic processing flows together Connected tools feed Incident Sync, which creates incidents queued for triage. Triage writes a summary and plan, then fans out to read-only Follow-up and the Wiki Auto-Indexer. Follow-up feeds Threat Hunting, which scans all incidents for patterns. Connected tools Incident Sync creates incidents Triage (AI pipeline) writes summary, IOCs, plan; queues follow-ups Follow-up (read-only) executes each plan step Wiki Auto-Indexer records what was learned Threat Hunting scans all incidents for patterns alerts queued for triage

How work is coordinated

Two ideas worth knowing:

  • Queues. Workers don't constantly scan the database; instead, work is placed on queues and picked up by whichever worker handles that queue. CloudPeek uses a Redis-backed queue system for this. A small companion scheduler process is the "alarm clock" that tells each queue "do this every N seconds."
  • The real backlog lives in the database. The queues mostly carry timer wake-ups; the actual list of incidents to triage or follow-ups to run is kept in database tables, picked up safely so two workers never grab the same item. This is why CloudPeek can scale workers horizontally and never double-process an incident.

When there's a backlog, workers re-trigger themselves immediately (a "fast-tail" mechanism) rather than waiting for the next scheduled tick, so a flood of alerts is worked through quickly, while the schedule remains a safety net.

Reliability built in

  • Retries with backoff. If a step fails for a transient reason (a rate limit, a timeout), it's retried later with increasing delay. Genuinely unrecoverable errors (bad credentials, a missing tool) fail fast but keep any partial results for inspection.
  • Stuck-work recovery. Items that have been "in progress" too long are automatically reset and retried.
  • Health checks. A heartbeat and queue-depth monitoring let the platform detect and react to problems (including autoscaling based on the real backlog).

A note on tenant isolation

Normally CloudPeek enforces strict per-request tenant isolation. Workers are the one deliberate exception: a single worker processes many tenants, so it runs under a special database role that can see across tenants. This is by design and tightly controlled, see Platform Architecture.

What you can configure

Most worker behaviour is set by operators at the deployment level (schedules, batch sizes, concurrency). The things you'll more commonly control from the app:

Read on

© 2026 CloudPeek. Agentic AI for high-consequence security operations.