You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/utilities/idempotency.md
+75-11
Original file line number
Diff line number
Diff line change
@@ -125,8 +125,12 @@ When using `idempotent_function`, you must tell us which keyword parameter in yo
125
125
126
126
!!! info "We support JSON serializable data, [Python Dataclasses](https://docs.python.org/3.7/library/dataclasses.html){target="_blank"}, [Parser/Pydantic Models](parser.md){target="_blank"}, and our [Event Source Data Classes](./data_classes.md){target="_blank"}."
127
127
128
-
???+ warning
129
-
Make sure to call your decorated function using keyword arguments
128
+
???+ warning "Limitations"
129
+
Make sure to call your decorated function using keyword arguments.
130
+
131
+
Decorated functions with `idempotent_function` are not thread-safe, if the caller uses threading, not the function computation itself.
132
+
133
+
DynamoDB Persistency layer uses a Resource client [which is not thread-safe](https://boto3.amazonaws.com/v1/documentation/api/latest/guide/resources.html?highlight=multithreading#multithreading-or-multiprocessing-with-resources){target="_blank"}.
130
134
131
135
=== "batch_sample.py"
132
136
@@ -1018,12 +1022,34 @@ with a truthy value. If you prefer setting this for specific tests, and are usin
0 commit comments