PubSub: Allow user specified timeout for this executor.submit() (nice to have)

Skip to content

Navigation Menu

Sign in

Appearance settings

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

Sign up

Appearance settings

Closed

@jeffkpayne

Description

https://github.com/GoogleCloudPlatform/google-cloud-python/blob/b2c7c11e4e24cf571cd5601803a883542136552c/pubsub/google/cloud/pubsub_v1/subscriber/policy/thread.py#L338

Since the future will block indefinitely, it would be nice to be able to specify a timeout. The current work-around we use is to ensure that the callback function doesn't block forever, but that requires introducing yet another thread construct into the situation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions