Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

PubSub: New pubsub not compatible with psq #4224

Copy link
Copy link
Closed
@shumin

Description

@shumin
Issue body actions

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.Issues related to the Pub/Sub API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.