TimerResponse
id: py-TimerResponse
TimerResponse
Timer registration structure used with TimerService.
Properties
| Property | Type | Description |
|---|---|---|
Group | str | Logical group name for the timer |
Name | str | Unique identifier within the group |
Timer | TimerChoice | The timer configuration |
TimerService.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