PollJob will keep polling the given job until the job has terminated, an error is encountered, or config.OverallPollingTimeout is reached. In the last case, a JobTimeoutError is returned.
(jobURL JobURL)
| 95 | // error is encountered, or config.OverallPollingTimeout is reached. In the |
| 96 | // last case, a JobTimeoutError is returned. |
| 97 | func (client *Client) PollJob(jobURL JobURL) (Warnings, error) { |
| 98 | return client.PollJobForState(jobURL, constant.JobComplete) |
| 99 | } |
| 100 | |
| 101 | func (client *Client) PollJobForState(jobURL JobURL, state constant.JobState) (Warnings, error) { |
| 102 | if jobURL == "" { |
nothing calls this directly
no test coverage detected