Skip to content

Commit fadcb3b

Browse files
committed
Adding alarm handler method into DO base class.
1 parent d9e7768 commit fadcb3b

File tree

1 file changed

+7
-1
lines changed
  • src/content/docs/durable-objects/api

1 file changed

+7
-1
lines changed

src/content/docs/durable-objects/api/base.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ export class MyDurableObject extends DurableObject {
3737

3838
- <code>alarm()</code>: <Type text="Promise <void>"/>
3939

40-
- See [Alarms](/durable-objects/api/alarms/).
40+
- Called by the system when a scheduled alarm time is reached.
41+
42+
- The `alarm()` handler has guaranteed at-least-once execution and will be retried upon failure using exponential backoff, starting at 2 second delays for up to 6 retries. Retries will be performed if the method fails with an uncaught exception.
43+
44+
- This method can be `async`.
45+
46+
- Refer to [Alarms](/durable-objects/api/alarms/#alarm) for more information.
4147

4248
### `webSocketMessage`
4349

0 commit comments

Comments
 (0)