kubeless icon indicating copy to clipboard operation
kubeless copied to clipboard

Kubeless blocking the publish api of Google Pubsub topic

Open aswathy1294 opened this issue 3 years ago • 1 comments

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.

aswathy1294 avatar Jun 09 '21 05:06 aswathy1294

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!

Sri-krishna98 avatar Jun 10 '21 05:06 Sri-krishna98