Skip to main content

Cron

@webda/core


Function: Cron()

Cron(cron, description?, input?): <T>(value, context) => T

Defined in: packages/core/src/services/cron.service.ts:553

Decorator to schedule an operation with a cron expression

The method must be an @Operation: each tick calls the operation as the system, with input validated against the operation input schema

Parameters​

cron​

string

the cron expression

description?​

string = ""

the description

input?​

Record<string, any> = {}

the operation input

Returns​

the result

<T>(value, context) => T