Jobs and health
Follow, retry and cancel jobs, read the health endpoints and logs, and understand held jobs.
Jobs
All of Synaxis's background work runs as jobs that the workers claim from PostgreSQL: syncing connections, fetching, scanning, indexing, structure, contracts, summaries, the catalog, project data, access refreshes, purges and generations. A burst of pushes to one repository queues one fetch, not many.
To follow jobs
- Open Jobs. Filter by Kind, State and Repository, then select Apply. From Repositories, the Jobs link of a row opens this page filtered to that repository.
- Each row shows the Kind, Repository, State, Attempts, when it was Queued and Finished, and its Last error. The list updates as jobs change.
| State | Means |
|---|---|
| Pending | Waiting for a worker, or for its next retry |
| Running | A worker holds it |
| Held | Waiting for a reason to go away, shown as "held: reason": a budget (budget:<job kind>), a ref with too many files (limit:files), or the license |
| Succeeded | Done |
| Failed | Out of attempts |
| Canceled | Canceled by an administrator |
Retry and cancel
A failing job is retried with a growing wait: 30 seconds after the first failure, doubling each time up to an hour, for 5 attempts by default. A throttled upstream never counts as a failure: the job waits for the time the upstream gives. After the last attempt the job is Failed.
The event stream (/api/v1/events, a token with the events scope) tells administrators' own tools what the list
shows: repo.failed when a repository's job fails its last attempt, with the job's kind and error, and job.progress
while an index runs, with how many of its changed files are stored.
- Retry queues a job again: "The job is queued again."
- Cancel stops a job that has not finished: "The job is canceled."
From the CLI: synaxis jobs list --state failed, synaxis jobs retry <id>, synaxis jobs cancel <id>.
Held jobs resume by themselves: budget holds when there is room (checked hourly), license holds when a valid license is installed. See Budgets.
Schedules
Recurring jobs run on schedules you can change: polling syncs every 5 minutes, the reconcile daily at 02:00 UTC, summaries 6 hours after a repository's first change, the capability refresh daily an hour after the reconcile finishes, the fold of desktop learning signals daily at 01:00 UTC, the repository review and the repositories' briefs 15 minutes after it, the instructions' distillation weekly on Sunday 04:00 UTC an hour after the review, retention daily, budget checks hourly, access refreshes every 5 minutes and metrics every 30 seconds.
To see and change a schedule
- Open Jobs › Schedules (or Schedules on the Jobs page). Each row shows how often the job Runs, the job it runs After and how long after it finishes, its Last run, when it is Next due, and Why in one sentence. A job that waits for a slower one shows a warning: it runs as often as that job does.
- Select Edit on a row. Set Every (an interval such as
30mor6h,daily,weeklyoroff), At (UTC) (02:30with daily,Sunday 04:00with weekly), After, Lag and Jitter, then Save. Reset to Default returns the row to its defaults.
A change is saved as a configuration revision and audited; it applies within a minute, without a restart. A job
whose dependency has not finished waits for it for at most a day, then runs and is marked as having skipped it.
off stops a job and leaves its model routes and budgets idle.
From the CLI: synaxis schedules, synaxis schedules explain catalog.refresh,
synaxis schedules set catalog.refresh --lag 30m (or --reset). In configuration as code, the schedules section
holds the same rows; see Configuration as code.
Health
Each process serves two endpoints on its management port (8081), which is never routed to the outside:
| Endpoint | Answers 200 when |
|---|---|
/healthz |
The process runs |
/readyz |
PostgreSQL answers with the schema this version expects, and Qdrant answers with its key |
The license never affects health or readiness. The image has no curl; it checks itself:
docker compose exec server dotnet BWTECH.CodeWrightAI.Synaxis.dll healthcheck # /healthz
docker compose exec server dotnet BWTECH.CodeWrightAI.Synaxis.dll healthcheck --ready # /readyz
docker compose exec server dotnet BWTECH.CodeWrightAI.Synaxis.dll version
Compose uses healthcheck as each server container's health check. On Kubernetes, the chart's startup and liveness
probes call /healthz and the readiness probe /readyz; helm test runs healthcheck --ready against the API.
Overview shows the version, the license state, the serving generation, and Freshness: how many repositories in scope are current, behind, not indexed yet, or failing.
Logs
Every process logs JSON lines to standard output, with a request id, job id and trace id. Logs never contain code,
work item text, prompts or secrets: every known secret value is removed from each line. Read them with
docker compose logs server, or your cluster's log collector.
Stopping a worker
A worker that receives SIGTERM stops claiming jobs and gives running ones the grace period (120 seconds on Kubernetes) to finish. Jobs still running then are released for another worker, without counting an attempt, so no work is lost.