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

Commit a8c43f2

Browse files
authored
fix lambda state reset method to shutdown esm workers correctly (#13671)
1 parent e984e40 commit a8c43f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ def accept_state_visitor(self, visitor: StateVisitor):
292292
visitor.visit(lambda_stores)
293293

294294
def on_before_state_reset(self):
295+
for esm_worker in self.esm_workers.values():
296+
esm_worker.stop_for_shutdown()
297+
self.esm_workers = {}
295298
self.lambda_service.stop()
296299

297300
def on_after_state_reset(self):

0 commit comments

Comments
 (0)