import type { JobMaintenance } from '../../../services/ports/jobMaintenance.js'; import type { JobAdminHarness } from './jobAdminContract.js'; /** The jobs and what the cron jobs do to them. */ export interface JobMaintenanceHarness extends JobAdminHarness { maintenance: JobMaintenance; } /** * What every `JobMaintenance` must do (ยง 8.4: Heartbeat and recovery, Cleanup, * and the dispatch cron). It runs against the double and against PostgreSQL, so * every time here is written relative to the clock of the store with margins of * minutes, and nothing waits. * * The real table has two unique indexes (one open job per entity, one import * queued or running), so a test with several jobs gives them different entities * and at most one that is queued or running. */ export declare function jobMaintenanceContract(label: string, make: () => Promise): void;