method IScheduler.pause
IScheduler.pause(name: string): Promise<void>

Pause a scheduled job without dropping its configuration.

Idempotent — calling pause on an already-paused job is a no-op.

Parameters

name: string

The job name

Return Type

Promise<void>

Throws

Error

If no job with name exists

Usage

import { type IScheduler } from "common/src/index.ts";