Module cron

Description

The cron module in Active-Connect enables developers to create cronjobs using the @Cron decorator. By utilizing the @Cron decorator, developers can easily define and schedule tasks to run at specified intervals.

Example:

@Cron("0 * * * *")
async runTask() {
// run scheduled tasks
}

Note: The cron module uses the node-cron library internally for handling cronjobs. You can find more details about node-cron at https://www.npmjs.com/package/node-cron.

For integration tests for cronjobs, please refer to the jest section, where details on implementing integration tests are provided.

Index

Functions

Generated using TypeDoc