> ## Documentation Index
> Fetch the complete documentation index at: https://docs-omnicoreagent.omnirexfloralabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Inspect background manager status



## OpenAPI

````yaml /docs/reference/openapi.json get /background/status
openapi: 3.1.0
info:
  description: >-
    The HTTP API of an agent served with `omniserve run --agent agent.py`: runs,
    approvals, budgets, background tasks, sessions and the evidence of every
    run.
  title: OmniServe
  version: latest
servers:
  - description: omniserve run, locally
    url: http://localhost:8000
security: []
paths:
  /background/status:
    get:
      tags:
        - Background
      summary: Inspect background manager status
      operationId: get_background_status_background_status_get
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BackgroundManagerStatusResponse'
          description: Successful Response
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HttpErrorResponse'
          description: Service Unavailable
components:
  schemas:
    BackgroundManagerStatusResponse:
      description: Inspectable background manager state.
      properties:
        active_runs:
          title: Active Runs
          type: integer
        agents:
          title: Agents
          type: integer
        initialized:
          title: Initialized
          type: boolean
        lease_seconds:
          title: Lease Seconds
          type: number
        running:
          title: Running
          type: boolean
        runs:
          title: Runs
          type: integer
        status_counts:
          additionalProperties:
            type: integer
          title: Status Counts
          type: object
        tasks:
          title: Tasks
          type: integer
        worker_id:
          title: Worker Id
          type: string
      required:
        - running
        - initialized
        - worker_id
        - lease_seconds
        - agents
        - tasks
        - runs
        - active_runs
        - status_counts
      title: BackgroundManagerStatusResponse
      type: object
    HttpErrorResponse:
      description: Response shape produced by FastAPI HTTPException.
      properties:
        detail:
          description: Error detail
          title: Detail
      required:
        - detail
      title: HttpErrorResponse
      type: object

````