Skip to the content.

SyncLane.AspNetCore

HTTP endpoints for SyncLane’s monitor, in one call. They appear in your application’s OpenAPI (Swagger) document under the tag SyncLane.

builder.Services.AddSyncLane(options => { /* ... */ });

app.MapSyncLane("/synclane").RequireAuthorization("ops");
Method Path What it answers
GET /overview One line per queue: open jobs by state, owners, instances, the last day
GET /freshness?queue=&owner=&search=&limit=&cursor= Owners ranked by how old their completed data is, with the job that explains it; search finds owners by name or key
GET /freshness/owners?queues=&search=&show=&staleAfter=&limit=&cursor=&includeTotal= The same, grouped by owner across the queues named (repeat queues), stalest owner first, so a page never cuts an owner in half; show is all, attention, stale or paused, staleAfter as 1.00:00:00; includeTotal=true counts the owners into total
GET /problems?queue= Failing and abandoned jobs grouped by error code
GET /budgets?budget=&search=&includeTotal=&limit=&cursor= Rate budgets: learned rate, pause, last refusal; search finds budgets by name or key; includeTotal=true adds total, the number of matching buckets
GET /instances Every process of every application on the schema: alive, stopped (with when) or gone
GET /volume?from=&to=&queue=&type=&unit=hour Completed jobs, records, failures per hour or day
GET /jobs?queue=&owner=&status=&type=&search=&limit=&cursor= Jobs, newest first, with each owner’s name; search finds owners by name or key
GET /jobs/owners?queues=&queues=&status=&type=&search=&limit=&cursor=&includeTotal= Each owner’s jobs counted by status across the queues given (one queues= per queue, at least one), newest job first; includeTotal=true adds total, the number of owners
GET /stream?queue=&owner= Server-sent events, one job event per created job or status change
GET /pauses The pauses in force: who, why, until when
GET /budget-limits The budget limits in force: who, why, until when
GET /switches Each application and role: its switch, how many live instances run workers and the planner and listen, and how many ignore switches because they run an older version
GET /actions?queue=&owner=&search=&limit=&cursor=&includeTotal= What operators did, newest first, with who and why; search finds text in the action, queue, owner, target, reason or who did it; includeTotal=true adds total, the number of matches over every page
POST /pause?queue=&owner=&reason=&until= Emergency stop of a queue or one owner: running jobs are cut and handed back
POST /resume?queue=&owner= Lift a pause
POST /budgets/limit?budget=&key=&limit=&per=&reason=&until= Lower a rate budget, or one key of it, for a while (per as 00:01:00)
POST /budgets/clear-limit?budget=&key= Lift a budget limit
POST /jobs/{id}/requeue, /jobs/{id}/restart Repair one job
POST /jobs/{id}/skip?reason= Take one job out of line for good, so an ordered lane goes on
POST /requeue-by-code?queue=&code= Requeue every failing job with one error code
POST /prioritize?queue=&owner= Move an owner’s waiting jobs ahead of the others
POST /switch?application=&role=&workers=&planner=&reason= Turn an application’s workers and planner on or off without a deploy; leave workers or planner out to follow its settings
POST /switch/listen?application=&role=&listen=&reason= Turn an application’s listening connections on or off without a deploy; leave listen out to follow its settings. The workers and the planner keep their switch
POST /sync-now?queue=&owner=&type= Fetch an owner’s new data now, for example on a webhook; a burst of calls is one fetch

Safe by default:

The stream needs LISTEN, which a pooler in transaction mode cannot carry: set ListenConnectionString to the server itself.

More: the monitor, error codes.