MCPcopy Index your code
hub / github.com/cloudfoundry/cli / PollJob

Method PollJob

api/cloudcontroller/ccv3/job.go:97–99  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

95// error is encountered, or config.OverallPollingTimeout is reached. In the
96// last case, a JobTimeoutError is returned.
97func (client *Client) PollJob(jobURL JobURL) (Warnings, error) {
98 return client.PollJobForState(jobURL, constant.JobComplete)
99}
100
101func (client *Client) PollJobForState(jobURL JobURL, state constant.JobState) (Warnings, error) {
102 if jobURL == "" {

Callers

nothing calls this directly

Calls 1

PollJobForStateMethod · 0.95

Tested by

no test coverage detected