Skip to content

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

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

import { memoryJobRunStore } from '@gj-kit/nest-operations-jobs/testing';
/**
* In-memory `JobRunStore` honouring S1-S7. Single-process only: its atomicity
* comes from the absence of `await` between read and write, which no networked
* store can rely on. **Never use it in production** — a real deployment needs a
* partial unique index and an atomic reap statement, and
* `jobRunStoreContractCases()` is how a host proves it has them.
*/
declare function memoryJobRunStore(options?: MemoryJobRunStoreOptions): MemoryJobRunStore;

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: ./testing
  • Source: GitHub