Skip to content

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

Closed
@jeffkpayne

Description

@jeffkpayne

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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions