#[non_exhaustive]pub struct RuntimeConfig {
pub parameters: HashMap<String, Value>,
pub gcs_output_directory: String,
pub parameter_values: HashMap<String, Value>,
pub failure_policy: PipelineFailurePolicy,
pub input_artifacts: HashMap<String, InputArtifact>,
/* private fields */
}Expand description
The runtime config of a PipelineJob.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parameters: HashMap<String, Value>Deprecated. Use
RuntimeConfig.parameter_values
instead. The runtime parameters of the PipelineJob. The parameters will
be passed into
PipelineJob.pipeline_spec
to replace the placeholders at runtime. This field is used by pipelines
built using PipelineJob.pipeline_spec.schema_version 2.0.0 or lower,
such as pipelines built using Kubeflow Pipelines SDK 1.8 or lower.
gcs_output_directory: StringRequired. A path in a Cloud Storage bucket, which will be treated as the
root output directory of the pipeline. It is used by the system to
generate the paths of output artifacts. The artifact paths are generated
with a sub-path pattern {job_id}/{task_id}/{output_key} under the
specified output directory. The service account specified in this
pipeline must have the storage.objects.get and storage.objects.create
permissions for this bucket.
parameter_values: HashMap<String, Value>The runtime parameters of the PipelineJob. The parameters will be
passed into
PipelineJob.pipeline_spec
to replace the placeholders at runtime. This field is used by pipelines
built using PipelineJob.pipeline_spec.schema_version 2.1.0, such as
pipelines built using Kubeflow Pipelines SDK 1.9 or higher and the v2
DSL.
failure_policy: PipelineFailurePolicyRepresents the failure policy of a pipeline. Currently, the default of a pipeline is that the pipeline will continue to run until no more tasks can be executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling any new tasks when a task has failed. Any scheduled tasks will continue to completion.
input_artifacts: HashMap<String, InputArtifact>The runtime artifacts of the PipelineJob. The key will be the input artifact name and the value would be one of the InputArtifact.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
pub fn new() -> Self
Sourcepub fn set_parameters<T, K, V>(self, v: T) -> Self
👎Deprecated
pub fn set_parameters<T, K, V>(self, v: T) -> Self
Sets the value of parameters.
Sourcepub fn set_gcs_output_directory<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_output_directory<T: Into<String>>(self, v: T) -> Self
Sets the value of gcs_output_directory.
Sourcepub fn set_parameter_values<T, K, V>(self, v: T) -> Self
pub fn set_parameter_values<T, K, V>(self, v: T) -> Self
Sets the value of parameter_values.
Sourcepub fn set_failure_policy<T: Into<PipelineFailurePolicy>>(self, v: T) -> Self
pub fn set_failure_policy<T: Into<PipelineFailurePolicy>>(self, v: T) -> Self
Sets the value of failure_policy.
Sourcepub fn set_input_artifacts<T, K, V>(self, v: T) -> Self
pub fn set_input_artifacts<T, K, V>(self, v: T) -> Self
Sets the value of input_artifacts.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
fn clone(&self) -> RuntimeConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more