Services
worker-jobs
Runs alerts, webhooks, emails and cleanup jobs. Port 4200 serves health only.
The only service that runs scheduled jobs.
Reads PostgreSQL, ClickHouse, object storage, integrations except Linear, email, logging and the cache Redis, where it drops cached reads of a demo project once it is filled. It needs no state Redis.
| Variable | Required | Default | Description |
|---|---|---|---|
API_ORIGIN | yes | Public origin of api. Builds webhook URLs for providers. | |
APP_DASHBOARD_ORIGIN | yes | Dashboard origin. Builds links in alerts. | |
NODE_ENV | no | development | Anything but production writes skipped emails to the log. |
PORT | no | 4200 | Health port. |
JOB_CONCURRENCY | no | 5 | Concurrent jobs per queue (rule evaluations, alert and webhook deliveries). |
ALERT_EVENT_RETENTION_DAYS | no | 30 | Retention of fired alert events. |
PostgreSQL queries run with a built-in 60-second statement timeout.
Commands
The image exposes the worker-jobs command:
| Command | What it does |
|---|---|
worker-jobs | Runs the worker. |
worker-jobs healthcheck | Exits with 0 when /healthz on PORT answers, else 1. |
Jobs
| Queue | What it does |
|---|---|
alert-evaluate-tick | Every minute, queues an evaluation for each enabled, unmuted rule. |
alert-evaluate-rule | Evaluates one metric or spike rule against ClickHouse. |
alert-issue-signals | Fires issue rules and webhooks for new and regressed error groups. |
alert-deliver | Sends one notification to email, Slack, Discord or Telegram, with retries. |
alert-send-test | Sends a rule's test notification. |
alert-cleanup | Nightly, drops alert events older than ALERT_EVENT_RETENTION_DAYS. |
webhook-deliver | Sends one signed webhook. Needs INTEGRATIONS_ENCRYPTION_KEY. |
webhook-cleanup | Nightly, drops webhook deliveries older than 30 days. |
project-cleanup | Deletes a removed project's source maps, replays and ClickHouse rows. |
replay-cleanup | Nightly, deletes replay segments older than 30 days from object storage. |
demo-project-seed | Fills a new demo project with three days of sample telemetry. |
repository-sync | Lists a code integration's repositories after it connects. |
webhook-registration | On start, registers the integrations' inbound webhooks, such as Telegram's. |
email-send | Sends an email through Resend. Without RESEND_API_KEY or EMAIL_FROM, logs a skip. |
audit-maintenance | Nightly, records expired API tokens in the audit log. |
audit-organization-purge | Deletes a removed organization's audit log. |
integration-maintenance | Nightly, drops expired links for connecting an integration. |