Skip to content

PubSub: New pubsub not compatible with psq #4224

Closed

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

Activity

  1. theacodes commented on Oct 19, 2017

    @theacodes
    Contributor

    Any workaround so psq can work with latest pubsub?

    Nope, I need to either update or deprecate PSQ. Most of the features that PSQ has are now incorporated into the Pub/Sub library.

  2. self-assigned this
    on Oct 19, 2017
  3. mohammad-haque commented on Oct 19, 2017

    @mohammad-haque

    @jonparrott Thanks. Although Pubsub does offer many features but it doesn't completely replace the need of some queue based task processing, in this case PSQ. It would be really helpful to keep the PSQ as a supported option, not deprecating it.

  4. theacodes commented on Oct 19, 2017

    @theacodes
    Contributor

    For sure- really psq isn't a very big library. It shouldn't be too hard (if you want to take a stab at a PR go for it.)

  5. changed the title [-]New pubsub not compatible with psq[/-] [+]PubSub: New pubsub not compatible with psq[/+] on Nov 3, 2017
  6. theacodes commented on Jan 4, 2018

    @theacodes
    Contributor

    This is fixed in the latest release of psq.

  7. added a commit that references this issue on Oct 21, 2023
    d369a34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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