Skip to content

@saflib/cron-db


@saflib/cron-db

Classes

ClassDescription
CronDatabaseErrorSuperclass for all handled cron db errors
JobSettingNotFoundErrorSuperclass for all handled cron db errors

Interfaces

InterfaceDescription
JobSettingThe current state and settings of a cron job.

Type Aliases

Type AliasDescription
GetAllResult-
GetByNameResult-
SetEnabledResult-
SetLastRunStatusResult-

Variables

VariableDescription
cronDbFor managing connections to the cron database.
getAll-
getByName-
setEnabledUpsert enabled flag for a cron job. When enabling, pass enabledBy (Kratos identity id) to record authority. When disabling, enabled_by is retained as an audit trail of who last held authority.
setLastRunStatus-