#[non_exhaustive]pub struct PipelineTaskDetail {Show 14 fields
pub task_id: i64,
pub parent_task_id: i64,
pub task_name: String,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub end_time: Option<Timestamp>,
pub executor_detail: Option<PipelineTaskExecutorDetail>,
pub state: State,
pub execution: Option<Execution>,
pub error: Option<Status>,
pub pipeline_task_status: Vec<PipelineTaskStatus>,
pub inputs: HashMap<String, ArtifactList>,
pub outputs: HashMap<String, ArtifactList>,
pub task_unique_name: String,
/* private fields */
}pipeline-service or schedule-service only.Expand description
The runtime detail of a task execution.
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.task_id: i64Output only. The system generated ID of the task.
parent_task_id: i64Output only. The id of the parent task if the task is within a component scope. Empty if the task is at the root level.
task_name: StringOutput only. The user specified name of the task that is defined in pipeline_spec.
create_time: Option<Timestamp>Output only. Task create time.
start_time: Option<Timestamp>Output only. Task start time.
end_time: Option<Timestamp>Output only. Task end time.
executor_detail: Option<PipelineTaskExecutorDetail>Output only. The detailed execution info.
state: StateOutput only. State of the task.
execution: Option<Execution>Output only. The execution metadata of the task.
error: Option<Status>Output only. The error that occurred during task execution. Only populated when the task’s state is FAILED or CANCELLED.
pipeline_task_status: Vec<PipelineTaskStatus>Output only. A list of task status. This field keeps a record of task status evolving over time.
inputs: HashMap<String, ArtifactList>Output only. The runtime input artifacts of the task.
outputs: HashMap<String, ArtifactList>Output only. The runtime output artifacts of the task.
task_unique_name: StringOutput only. The unique name of a task. This field is used by rerun pipeline job. Console UI and Vertex AI SDK will support triggering pipeline job reruns. The name is constructed by concatenating all the parent tasks name with the task name. For example, if a task named “child_task” has a parent task named “parent_task_1” and parent task 1 has a parent task named “parent_task_2”, the task unique name will be “parent_task_2.parent_task_1.child_task”.
Implementations§
Source§impl PipelineTaskDetail
impl PipelineTaskDetail
pub fn new() -> Self
Sourcepub fn set_task_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_task_id<T: Into<i64>>(self, v: T) -> Self
Sourcepub fn set_parent_task_id<T: Into<i64>>(self, v: T) -> Self
pub fn set_parent_task_id<T: Into<i64>>(self, v: T) -> Self
Sets the value of parent_task_id.
§Example
let x = PipelineTaskDetail::new().set_parent_task_id(42);Sourcepub fn set_task_name<T: Into<String>>(self, v: T) -> Self
pub fn set_task_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = PipelineTaskDetail::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = PipelineTaskDetail::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = PipelineTaskDetail::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = PipelineTaskDetail::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = PipelineTaskDetail::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = PipelineTaskDetail::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_end_time<T>(self, v: T) -> Self
pub fn set_end_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_time<T>(self, v: Option<T>) -> Self
Sourcepub fn set_executor_detail<T>(self, v: T) -> Selfwhere
T: Into<PipelineTaskExecutorDetail>,
pub fn set_executor_detail<T>(self, v: T) -> Selfwhere
T: Into<PipelineTaskExecutorDetail>,
Sets the value of executor_detail.
§Example
use google_cloud_aiplatform_v1::model::PipelineTaskExecutorDetail;
let x = PipelineTaskDetail::new().set_executor_detail(PipelineTaskExecutorDetail::default()/* use setters */);Sourcepub fn set_or_clear_executor_detail<T>(self, v: Option<T>) -> Selfwhere
T: Into<PipelineTaskExecutorDetail>,
pub fn set_or_clear_executor_detail<T>(self, v: Option<T>) -> Selfwhere
T: Into<PipelineTaskExecutorDetail>,
Sets or clears the value of executor_detail.
§Example
use google_cloud_aiplatform_v1::model::PipelineTaskExecutorDetail;
let x = PipelineTaskDetail::new().set_or_clear_executor_detail(Some(PipelineTaskExecutorDetail::default()/* use setters */));
let x = PipelineTaskDetail::new().set_or_clear_executor_detail(None::<PipelineTaskExecutorDetail>);Sourcepub fn set_execution<T>(self, v: T) -> Self
pub fn set_execution<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_execution<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_execution<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Sourcepub fn set_pipeline_task_status<T, V>(self, v: T) -> Self
pub fn set_pipeline_task_status<T, V>(self, v: T) -> Self
Sets the value of pipeline_task_status.
§Example
use google_cloud_aiplatform_v1::model::pipeline_task_detail::PipelineTaskStatus;
let x = PipelineTaskDetail::new()
.set_pipeline_task_status([
PipelineTaskStatus::default()/* use setters */,
PipelineTaskStatus::default()/* use (different) setters */,
]);Sourcepub fn set_inputs<T, K, V>(self, v: T) -> Self
pub fn set_inputs<T, K, V>(self, v: T) -> Self
Sourcepub fn set_outputs<T, K, V>(self, v: T) -> Self
pub fn set_outputs<T, K, V>(self, v: T) -> Self
Sourcepub fn set_task_unique_name<T: Into<String>>(self, v: T) -> Self
pub fn set_task_unique_name<T: Into<String>>(self, v: T) -> Self
Sets the value of task_unique_name.
§Example
let x = PipelineTaskDetail::new().set_task_unique_name("example");Trait Implementations§
Source§impl Clone for PipelineTaskDetail
impl Clone for PipelineTaskDetail
Source§fn clone(&self) -> PipelineTaskDetail
fn clone(&self) -> PipelineTaskDetail
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more