Add unique ID to request/response subscriber names so subscribes see all responses (#399)

This commit is contained in:
cybermaggedon 2025-05-27 23:11:55 +01:00 committed by GitHub
parent c05ec25e39
commit 4ffb677488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,8 +127,12 @@ class RequestResponseSpec(Spec):
rr = self.impl(
client = processor.pulsar_client,
# Make subscription names unique, so that all subscribers get
# to see all response messages
subscription = (
processor.id + "--" + flow.name + "--" + self.request_name
processor.id + "--" + flow.name + "--" + self.request_name +
"--" + str(uuid.uuid4())
),
consumer_name = flow.id,
request_topic = definition[self.request_name],