TimerResponse
Timer registration structure used with TimerService.
Properties
| Property | Type | Description |
|---|---|---|
Group | string | Logical group name for the timer |
Name | string | Unique identifier within the group |
Timer | TimerChoice | The timer configuration |
Timer.register({
Group: 'maintenance',
Name: 'nightly-cleanup',
Timer: {
Cron: {
Expression: '0 2 * * *',
Payload: { task: 'cleanup' }
}
}
});
caution
The Name must be unique within its Group. Registering with the same Group + Name replaces the existing timer.
See Also
TimerChoice— Union of timer typesTimerService— Timer API class