multi-party-computation-controller-api
    Preparing search index...

    Service for querying the status of enqueued jobs.

    Searches both the key-generation and signing queues for a given job identifier. Job identifiers are UUIDs generated by the respective enqueue services; they are globally unique across both queues.

    Index

    Constructors

    Properties

    keyGenerationQueue: Queue
    logger: Logger = ...
    signingQueue: Queue

    Methods

    • Retrieves the current status of a job by its identifier.

      Searches the key-generation queue first, then the signing queue. Throws NotFoundException if the job is not found in either queue.

      Parameters

      • jobId: string

        The UUID returned when the job was enqueued.

      Returns Promise<JobStatusResponse>

      A snapshot of the job's current state and result (if available).

      When no job with the given identifier exists.

    • Translates a BullMQ internal state string into the public JobStatus enum.

      BullMQ states beyond active, completed, and failed (e.g. waiting, delayed, prioritized, waiting-children) are all mapped to pending since they represent pre-processing states from the client's perspective.

      Parameters

      • bullmqState: JobState | "unknown"

        The state string returned by Job.getState().

      Returns JobStatus

      The corresponding JobStatus value.

    • Validates that a job's return value is a plausible JobResult before exposing it through the API.

      Parameters

      • value: unknown

        The raw job.returnvalue from BullMQ.

      Returns JobResult

      The validated result.

      When the return value is not a valid object.