Skip to content

Commit ff397dc

Browse files
authored
Feature: Decompose submit notification for s3 to be able to patch it in extension (#11692)
1 parent 5e8d3a1 commit ff397dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

localstack-core/localstack/services/s3/notifications.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,11 @@ def send_notifications(
845845
for config in configurations:
846846
if notifier.should_notify(ctx, config): # we check before sending it to the thread
847847
LOG.debug("Submitting task to the executor for notifier %s", notifier)
848-
self.executor.submit(notifier.notify, ctx, config)
848+
self._submit_notification(notifier, ctx, config)
849+
850+
def _submit_notification(self, notifier, ctx, config):
851+
"Required for patching submit with local thread context for EventStudio"
852+
self.executor.submit(notifier.notify, ctx, config)
849853

850854
def verify_configuration(
851855
self,

0 commit comments

Comments
 (0)