Production Pulse · 2 / 8
Add a daily review timer
Keep the frequent heartbeat and add an independent daily diagnostic.
YOUR TASK
Make this happen
Add integration_actor_timer.daily_review, name daily_review, with cron schedule
0 6 * * *and sourcereturn { review = true }.Connect both timers in actor.cococo; keep the five-minute heartbeat and add its 15s jitter.
Check both schedules. The daily timer is a local diagnostic, not another remote signal.
This lesson starts with the previous working solution. Build and connect the next capability. Your earlier drafts are kept separately.
Read the starter files
main.cococo
integration_document "monitor" {
integrationId = "com.academy.monitor"
sdkVersion = "2.0"
version = "1.0.0"
description = "A small heartbeat integration"
actor = integration_actor.monitor
}
actor.cococo
integration_actor "monitor" {
timers = [integration_actor_timer.heartbeat]
}
timer.cococo
integration_actor_timer "heartbeat" {
name = "heartbeat"
schedule = { every = "5m" }
source = "return { alive = true }"
}
daily.cococo
integration_actor_timer "daily_review" {
name = "daily_review"
# TODO: add schedule — see the task above.
# TODO: add source — see the task above.
}
Supplied scripts and pinned contracts (read-only)
These fixtures explain the runtime behaviour being composed. They are included in validation but are not executed. The generated API definition is supplied, not an XML authoring task.
scripts/heartbeat.lua
return { alive = true }