Parameter description
Attribute | Type | Description |
---|---|---|
job_ids | str, tuple, or list | List of job IDs |
timeout | int | Timeout after which all unfinished jobs will be stopped |
interval | int | Minimum interval at which all job states are checked. The default value is 3 seconds |
Response description
The poll method returns a list
object, which contains the failure or timeout information of jobs. The null value indicates that no error occurs. If the poll method is called, its return value must be checked.
Example
try:
client = Client(...
...
job_ids = ["job-xxxx", "job-yyyy", "job-zzzz"]
# Wait all job finished.
errs = client.poll(job_ids)
if errs: print ("Some errors occur: %s" % '\n'.join(errs))
except ClientError, e:
print(e)