Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Kubeless blocking the publish api of Google Pubsub topic #1234

Open
aswathy1294 opened this issue Jun 9, 2021 · 1 comment
Open

Kubeless blocking the publish api of Google Pubsub topic #1234

aswathy1294 opened this issue Jun 9, 2021 · 1 comment

Comments

@aswathy1294
Copy link

Is this a BUG REPORT or FEATURE REQUEST?:
FEATURE REQUEST
What happened:
Messages not getting published in Google pubsub topic when deployed the function with Kubeless.
What you expected to happen:
I would like to use kubeless to deploy a python function which will publish the data to pubsub topic without any call back function as it will add the latency to my use case.

@Sri-krishna98
Copy link

I've been facing the same issue, the publisher.publish operation of gcp pubsub python SDK is inherently async and returns a future and unless I block the other operations by doing future.result() it doesn't work and adds very high latency to the operation itself
What should work

Future=publisher.publish(topic, message)
This future is never completed

What works

Future=publisher.publish(topic, message)
Future.result() <- this makes it blocking

Please look into this BUG!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants