Skip to main content

Goal

Run a Function at regular intervals (cleanup jobs, report generation, health checks) using the Cron module.

Steps

1. Enable the Cron module

iii-config.yaml

2. Register the Function

cron-task.ts

3. Register the Cron trigger

cron-trigger.ts
This runs the Function every second. The expression field uses a 7-field cron format with seconds support (second minute hour day month weekday year).

Common schedules

Result

The Function executes automatically on the defined schedule. The Engine handles scheduling, no external cron daemon needed.