Skip to content

PubSub: New pubsub not compatible with psq #4224

Closed
@shumin

Description

@shumin

I'm using google-cloud=0.27.0 currently and now trying to use latest google-cloud-pubsub=0.28.4

But its break with current psq implementation. Any workaround so psq can work with latest pubsub?

Code snippet for existing implementation (works):

client = pubsub.Client(project=current_app.config['PROJECT_ID'])
psq.Queue(client, 'feed_queue', extra_context=current_app.app_context)

New implementation (breaks):

client = pubsub.SubscriberClient()
psq.Queue(client, 'feed_queue', extra_context=current_app.app_context)
(Error msg: AttributeError: 'Client' object has no attribute 'topic')

Thanks

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions