Skip to content

Commit 6776d79

Browse files
committed
docs(idempotency): note to skip timeout section when using handler decorator
Signed-off-by: heitorlessa <[email protected]>
1 parent cf39547 commit 6776d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/utilities/idempotency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,14 +335,14 @@ You can change this expiration window with the **`expires_after_seconds`** param
335335

336336
### Lambda timeouts
337337

338+
!!! note "You can skip this section if you are using the [`@idempotent` decorator](#idempotent-decorator)"
339+
338340
By default, we protect against [concurrent executions](#handling-concurrent-executions-with-the-same-payload) with the same payload using a locking mechanism. However, if your Lambda function times out before completing the first invocation it will only accept the same request when the [idempotency record expire](#expiring-idempotency-records).
339341

340342
To prevent extended failures, use **`register_lambda_context`** function from your idempotency config to calculate and include the remaining invocation time in your idempotency record.
341343

342344
=== "Registering the Lambda context"
343345

344-
> This is unnecessary for [`@idempotent` decorator](#idempotent-decorator), as it captures the Lambda context from your handler function.
345-
346346
```python title="working_with_lambda_timeout.py" hl_lines="11 20"
347347
--8<-- "examples/idempotency/src/working_with_lambda_timeout.py"
348348
```

0 commit comments

Comments
 (0)