import type { Job } from "../job.js";

export const JOB_DELAY_EVENT_PREFIX = "RealQueue/JobDelay/";

export type JobDelayEvent<JobData = any> = {
    job: Job<JobData>;
    /**
     * Is the current window in idle mode? If yes, you can decrease the delay a bit.
     */
    isIdle: boolean;
    settings: {
        delay_ms: number;
    };
};
