nick
CDCloudflare Developers
•Created by Milan on 5/6/2025 in #durable-objects
Hmm, are you maybe setting the alarm to
Found the issue, in case this comes up for anyone else in the future using the CF Agents sdk. The
alarm
method is overridden to be called in the constructor: https://github.com/cloudflare/agents/blob/main/packages/agents/src/index.ts#L319
So the agent class specific schedule
method needs to be used instead. https://developers.cloudflare.com/agents/api-reference/schedule-tasks/8 replies