Skip to content

Basic polling helper function for long running operations/jobs #2117

@elibixby

Description

@elibixby

Several libraries with long running operation are lacking basic helper functions for polling

Considering that implementing exponential backoff properly is a 15 line affair which clutters up code it might be good to have a util function that properly implements exponential backoff and then allow things to call it, like in bigquery.job.Jobs

def wait(self):
    utils.exponential_backoff(self.begin, self.reload, self.status)

Metadata

Metadata

Assignees

Labels

api: coregrpcpriority: 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