providerplaneai
    Preparing search index...

    Coordinates queued job execution, persistence, and subscriber notification.

    Index

    Constructors

    Methods

    • Aborts a job by ID, removing it from the queue and signaling cancellation.

      Parameters

      • id: string

        The job identifier.

      • Optionalreason: string

        Optional human-readable abort reason.

      Returns void

      Nothing.

      Thrown when the job cannot be found.

    • Gets the maximum number of jobs that can run concurrently.

      Returns number | undefined

      The configured concurrency limit, or undefined when unbounded.

    • Gets the maximum number of jobs allowed in the queue.

      Returns number | undefined

      The configured queue size limit.

    • Gets the maximum number of raw bytes to store per job.

      Returns number | undefined

      The raw-response byte budget for each job.

    • Gets the maximum number of response chunks stored per job.

      Returns number | undefined

      The configured chunk retention limit.

    • Gets the current number of jobs in the queue.

      Returns number

      The number of jobs currently waiting to run.

    • Gets the current number of jobs running.

      Returns number

      The number of jobs currently executing.

    • Gets whether raw responses are stored for jobs.

      Returns boolean | undefined

      Whether raw provider responses are retained.

    • Gets whether binary-heavy fields are stripped from snapshots and timeline artifacts.

      Returns boolean | undefined

      Whether binary-heavy data is stripped before persistence.

    • Sets the maximum number of jobs that can run concurrently.

      Parameters

      • maxConcurrency: number | undefined

        The new concurrency limit.

      Returns void

      Nothing.

      Thrown when the value is not a non-negative integer.

    • Sets the maximum number of jobs allowed in the queue.

      Parameters

      • maxQueueSize: number | undefined

        The new queue size limit.

      Returns void

      Nothing.

      Thrown when the value is not a non-negative integer.

    • Sets the maximum number of raw bytes to store per job.

      Parameters

      • maxRawBytesPerJob: number | undefined

        The new raw-response byte limit.

      Returns void

      Nothing.

      Thrown when the value is not a non-negative integer.

    • Sets the maximum number of response chunks stored per job.

      Parameters

      • maxStoredResponseChunks: number | undefined

        The new chunk retention limit.

      Returns void

      Nothing.

      Thrown when the value is not a non-negative integer.

    • Sets whether raw responses are stored for jobs.

      Parameters

      • storeRawResponses: boolean | undefined

        Whether raw provider responses should be retained.

      Returns void

      Nothing.

      Thrown when the value is not a boolean.

    • Sets whether binary-heavy fields are stripped from snapshots and timeline artifacts.

      Parameters

      • stripBinaryPayloadsInSnapshotsAndTimeline: boolean | undefined

        Whether binary-heavy fields should be stripped.

      Returns void

      Nothing.

      Thrown when the value is not a boolean.