Skip to Content
OpenPerf

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.

VariableRequiredDefaultDescription
API_ORIGINyesPublic origin of api. Builds webhook URLs for providers.
APP_DASHBOARD_ORIGINyesDashboard origin. Builds links in alerts.
NODE_ENVnodevelopmentAnything but production writes skipped emails to the log.
PORTno4200Health port.
JOB_CONCURRENCYno5Concurrent jobs per queue (rule evaluations, alert and webhook deliveries).
ALERT_EVENT_RETENTION_DAYSno30Retention of fired alert events.

PostgreSQL queries run with a built-in 60-second statement timeout.

Commands

The image exposes the worker-jobs command:

CommandWhat it does
worker-jobsRuns the worker.
worker-jobs healthcheckExits with 0 when /healthz on PORT answers, else 1.

Jobs

QueueWhat it does
alert-evaluate-tickEvery minute, queues an evaluation for each enabled, unmuted rule.
alert-evaluate-ruleEvaluates one metric or spike rule against ClickHouse.
alert-issue-signalsFires issue rules and webhooks for new and regressed error groups.
alert-deliverSends one notification to email, Slack, Discord or Telegram, with retries.
alert-send-testSends a rule's test notification.
alert-cleanupNightly, drops alert events older than ALERT_EVENT_RETENTION_DAYS.
webhook-deliverSends one signed webhook. Needs INTEGRATIONS_ENCRYPTION_KEY.
webhook-cleanupNightly, drops webhook deliveries older than 30 days.
project-cleanupDeletes a removed project's source maps, replays and ClickHouse rows.
replay-cleanupNightly, deletes replay segments older than 30 days from object storage.
demo-project-seedFills a new demo project with three days of sample telemetry.
repository-syncLists a code integration's repositories after it connects.
webhook-registrationOn start, registers the integrations' inbound webhooks, such as Telegram's.
email-sendSends an email through Resend. Without RESEND_API_KEY or EMAIL_FROM, logs a skip.
audit-maintenanceNightly, records expired API tokens in the audit log.
audit-organization-purgeDeletes a removed organization's audit log.
integration-maintenanceNightly, drops expired links for connecting an integration.

On this page