Cron
Defined in: tsed/src/decorators/cron.ts:23
Method decorator that registers a method as a scheduled cron job.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
pattern | string | Cron expression (e.g., ”* * * * *”, “@daily”) |
options? | CronDecoratorOptions | Optional cron configuration (name, timezone, etc.) |
Returns
Section titled “Returns”MethodDecorator