Skip to content

Commit

Permalink
Matching alarmInfo definition for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oxyjun committed Dec 10, 2024
1 parent f9ef95c commit 2991a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/docs/durable-objects/api/base.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export class MyDurableObject extends DurableObject {
- Called by the system when a scheduled alarm time is reached.

- The optional parameter `alarmInfo` object has two properties:
- `retryCount` <Type text="number"/>: The maximum number of retries if the alarm does not wake up the Durable Object.
- `isRetry` <Type text="boolean"/>: A boolean value to indicate if the alarm should be retried.
- `retryCount` <Type text="number"/>: The number of times this alarm event has been retried.
- `isRetry` <Type text="boolean"/>: A boolean value to indicate if the alarm has been retried. This value is `true` if this alarm event is a retry.

- The `alarm()` handler has guaranteed at-least-once execution and will be retried upon failure using exponential backoff, starting at two second delays for up to six retries. Retries will be performed if the method fails with an uncaught exception.

Expand Down

0 comments on commit 2991a1c

Please sign in to comment.