Wait for a Kubernetes Job to complete.
Arguments
Arguments | |
---|---|
cluster_id |
The ID of the cluster.
|
job_name |
Name of the job.
|
namespace |
The namespace of the job (default:
|
project |
The project that the cluster is hosted in. Default value is this workflow's project.
|
location |
The location that the cluster is hosted in. Default value is this workflow's location.
|
query |
Optional query parameters for fetching the job. If present, must be a map of simple types that will be URL-encoded and appended to the URL. For more information, see Kubernetes API reference. |
timeout |
The timeout, in seconds (default:
|
polling_policy |
Policy for polling the job's status. Supported fields are
|
Returns
The completed Kubernetes Job.
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (DNS failure, refused connection, etc.). |
TimeoutError |
When the specified timeout is reached before the response is received. |
HttpError |
If the response status is >= 400. |
ValueError |
If the cluster does not have status RUNNING . |
FailedJobError |
If the job failed. |