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
I have a scenario where I want to subscribe one SQS queues to many topics, hence handling the creation of topics and subscriptions externaly to tomadashi.
The doc seems to imply it it possible to set the topic to None. I tried doing this. However if I set the topic to None, none of the messages get passed to the tomodashi function decorated:
@tomodachi.serviceclassSqsConsumer(tomodachi.Service):
# tomodachi process namename="sqs_consumer"options= {
"aws_sns_sqs.region_name": get_from_environment("AWS_REGION"),
"aws_sns_sqs.aws_access_key_id": get_from_environment("AWS_ACCESS_KEY"),
"aws_sns_sqs.aws_secret_access_key": get_from_environment("AWS_SECRET_KEY"),
}
@aws_sns_sqs(topic=None, queue_name=queue_name, competing=True)asyncdefnew_message(self, data: Any) ->None:
self._logger.info("Received a payload from SNS")
...
I also tried using regex to match all topics with no luck. It looks like there is some kind of a filter using the topic name in the decorator.
Version used is the latest 0.21.8.
The text was updated successfully, but these errors were encountered:
I have a scenario where I want to subscribe one SQS queues to many topics, hence handling the creation of topics and subscriptions externaly to tomadashi.
The doc seems to imply it it possible to set the topic to
None
. I tried doing this. However if I set the topic toNone
, none of the messages get passed to the tomodashi function decorated:I also tried using regex to match all topics with no luck. It looks like there is some kind of a filter using the topic name in the decorator.
Version used is the latest 0.21.8.
The text was updated successfully, but these errors were encountered: