Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit 507be02

Browse files
committed
improve comment
1 parent df4285c commit 507be02

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

localstack-core/localstack/services/lambda_/provider.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2472,7 +2472,9 @@ def delete_event_source_mapping(
24722472
raise ResourceNotFoundException(
24732473
"The resource you requested does not exist.", Type="User"
24742474
)
2475-
# the actual deletion of the ESM is happening synchronously, but we delete the Tags instantly
2475+
# the full deletion of the ESM is happening asynchronously, but we delete the Tags instantly
2476+
# this behavior is similar to ``get_event_source_mapping`` which will raise right after deletion, but it is not
2477+
# always the case in AWS. Add more testing and align behavior with ``get_event_source_mapping``.
24762478
self._remove_all_tags(event_source_mapping["EventSourceMappingArn"])
24772479
esm_worker.delete()
24782480
return {**esm, "State": EsmState.DELETING}

0 commit comments

Comments
 (0)