Constructs a new JobManager with the given options.
Optionaloptions: JobManagerOptionsConfiguration for concurrency, persistence, and hooks.
Adds a new job to the manager. Throws if the job ID already exists.
Input type for the job.
Output type for the job.
The job to register.
Nothing.
Retrieves a job by its ID.
Expected input type for the job.
Expected output type for the job.
The job identifier.
The job instance, or undefined when no such job exists.
Gets the maximum number of jobs that can run concurrently.
The configured concurrency limit, or undefined when unbounded.
Gets the maximum number of jobs allowed in the queue.
The configured queue size limit.
Gets the maximum number of raw bytes to store per job.
The raw-response byte budget for each job.
Gets the maximum number of response chunks stored per job.
The configured chunk retention limit.
Gets the current number of jobs in the queue.
The number of jobs currently waiting to run.
Gets the current number of jobs running.
The number of jobs currently executing.
Gets whether raw responses are stored for jobs.
Whether raw provider responses are retained.
Gets whether binary-heavy fields are stripped from snapshots and timeline artifacts.
Whether binary-heavy data is stripped before persistence.
Lists all jobs managed by this instance as snapshots.
Snapshots for every known job.
Resets and reruns a job by ID. Throws if not found or already running.
Expected input type for the job.
Expected output type for the job.
The job identifier.
The execution context passed to the job executor.
OptionalonChunk: (chunk: JobChunk<TOutput>) => voidOptional progress callback for streamed chunks.
The reset and requeued job instance.
Queues a job for execution. Throws if already running, queued, or not found.
Expected input type for the job.
Expected output type for the job.
The job identifier.
The execution context passed to the job executor.
OptionalonChunk: (chunk: JobChunk<TOutput>) => voidOptional progress callback for streamed chunks.
The queued job instance.
Subscribes to status updates for a specific job.
The job ID
The callback to invoke on updates
Unsubscribe function
Coordinates queued job execution, persistence, and subscriber notification.