Skip to main content

Cron

@webda/core


Function: Cron()

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

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

Decorator to schedule a service method with a cron expression

Parameters​

cron​

string

the cron expression

description?​

string = ""

the description

args​

...any[]

additional arguments

Returns​

the result

<T>(value, context) => T