Libraries v5.0.0
    Preparing search index...

    Class InMemoryJobRepository

    Test/development repository. Its state is not durable across process exits.

    Hierarchy (View Summary)

    Index
    storage: JobStorage
    • Fence a running owner immediately; physical cancellation is cooperative.

      Parameters

      • namespace: string
      • id: string

      Returns Promise<boolean>

    • Purge terminal data only; deduplication ends when the retained run is removed.

      Parameters

      • namespace: string
      • limit: number = 100

      Returns Promise<number>

    • Atomically materialize due occurrences and advance locked schedule cursors.

      Parameters

      • namespace: string
      • scheduleLimit: number = 10
      • replayLimit: number = 100

      Returns Promise<number>

    • Read a bounded page of committed events, scoped through the owning run.

      Parameters

      • namespace: string
      • id: string
      • after: number
      • limit: number = 100

      Returns Promise<JobEvent[]>

    • Persist a failure or shutdown interruption and its retry decision.

      Parameters

      • namespace: string
      • id: string
      • token: string
      • error: JobError
      • retryable: boolean = true
      • interrupted: boolean = false

      Returns Promise<void>

    • Renew an unexpired lease; a late heartbeat cannot resurrect ownership.

      Parameters

      • namespace: string
      • id: string
      • token: string
      • leaseMs: number

      Returns Promise<void>

    • Pausing stops new occurrences, not already accepted runs.

      Parameters

      • namespace: string
      • id: string
      • paused: boolean = true

      Returns Promise<boolean>