Skip to content

Scheduler needs to shutdown in a way compatible with SimpleQueue and Queue types for worker queue. #5292

Closed

Description

@crwilcox

Currently one test is failing for the scheduler. The issue is Py3.7 changed the _worker_queue to be a SimpleQueue.

Traceback (most recent call last):
File "/Users/crwilcox/workspace/google-cloud-python/pubsub/tests/unit/pubsub_v1/subscriber/test_scheduler.py", line 51, in test_schedule
scheduler_.shutdown()
File "/Users/crwilcox/workspace/google-cloud-python/pubsub/google/cloud/pubsub_v1/subscriber/scheduler.py", line 121, in shutdown
self._executor._work_queue.
AttributeError: '_queue.SimpleQueue' object has no attribute 'queue'

Activity

  1. self-assigned this
    on May 4, 2018
  2. added a commit that references this issue on May 4, 2018
    8fe5f55
  3. added a commit that references this issue on Apr 3, 2023
    cddc37b
  4. added a commit that references this issue on Apr 18, 2023
    ee130ea
  5. added 2 commits that reference this issue on Jun 4, 2023
    57002c6
    fef06cb
  6. added a commit that references this issue on Jul 6, 2023
    ac2eee4
  7. added 6 commits that reference this issue on Sep 22, 2023
    6311be8
    03f7ef6
    a7830f4
    600638a
    83f633b
    8e6a031
  8. added a commit that references this issue on Oct 21, 2023
    6d5c710
  9. 1 remaining item

  10. added 3 commits that reference this issue on Oct 21, 2023
    a66fd7d
    2a9cfd8
    cb20611
  11. added a commit that references this issue on Oct 31, 2023
    6877b31
  12. added 9 commits that reference this issue on Nov 22, 2025
    1017882
    2198ab4
    1f9e8e8
    5ad8f93
    eee9ac6
    ea52357
    c4365d7
    87a741a
    437a139
  13. added a commit that references this issue on Mar 2, 2026
    065d34b
  14. added a commit that references this issue on Mar 9, 2026
    e252c45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions