Skip to content

JobRunReapRequest — @gj-kit/nest-operations-jobs

A public interface from @gj-kit/nest-operations-jobs/core. The signature below is taken directly from the 0.1.1 release declaration.

import { JobRunReapRequest } from '@gj-kit/nest-operations-jobs/core';
interface JobRunReapRequest {
/**
* Liveness budget in milliseconds. A RUNNING row is abandoned when its
* watermark is older than this **on the store's own clock** (S6): the runner
* sends a duration, never an instant, because with N runner instances there
* are N process clocks and exactly one store clock. The store also stamps the
* reaped rows' `finishedAt` from that same clock.
*/
readonly staleAfterMs: number;
/**
* Narrow to one job's rows. The runner uses this for `allow`-policy jobs,
* whose overlap keys are minted per run and therefore match no existing row.
*/
readonly jobKey?: string | undefined;
/** Narrow to one overlap key — the key the runner is about to claim. */
readonly overlapKey?: string | undefined;
/** Upper bound on rows this call may move. */
readonly limit?: number | undefined;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/nest-operations-jobs
  • Version: 0.1.1
  • Public entry: ./core
  • Source: GitHub