[][src]Struct pachyderm::pps::PipelineInfo

pub struct PipelineInfo {
    pub id: String,
    pub pipeline: Option<Pipeline>,
    pub version: u64,
    pub transform: Option<Transform>,
    pub tf_job: Option<TfJob>,
    pub parallelism_spec: Option<ParallelismSpec>,
    pub hashtree_spec: Option<HashtreeSpec>,
    pub egress: Option<Egress>,
    pub created_at: Option<Timestamp>,
    pub state: i32,
    pub stopped: bool,
    pub recent_error: String,
    pub workers_requested: i64,
    pub workers_available: i64,
    pub job_counts: HashMap<i32, i32>,
    pub last_job_state: i32,
    pub output_branch: String,
    pub resource_requests: Option<ResourceSpec>,
    pub resource_limits: Option<ResourceSpec>,
    pub sidecar_resource_limits: Option<ResourceSpec>,
    pub input: Option<Input>,
    pub description: String,
    pub cache_size: String,
    pub enable_stats: bool,
    pub salt: String,
    pub reason: String,
    pub max_queue_size: i64,
    pub service: Option<Service>,
    pub spout: Option<Spout>,
    pub chunk_spec: Option<ChunkSpec>,
    pub datum_timeout: Option<Duration>,
    pub job_timeout: Option<Duration>,
    pub githook_url: String,
    pub spec_commit: Option<Commit>,
    pub standby: bool,
    pub datum_tries: i64,
    pub scheduling_spec: Option<SchedulingSpec>,
    pub pod_spec: String,
    pub pod_patch: String,
    pub s3_out: bool,
    pub metadata: Option<Metadata>,
}

Fields

id: Stringpipeline: Option<Pipeline>version: u64transform: Option<Transform>tf_job: Option<TfJob>

tf_job encodes a Kubeflow TFJob spec. Pachyderm uses this to create TFJobs when running in a kubernetes cluster on which kubeflow has been installed. Exactly one of 'tf_job' and 'transform' should be set

parallelism_spec: Option<ParallelismSpec>hashtree_spec: Option<HashtreeSpec>egress: Option<Egress>created_at: Option<Timestamp>state: i32

state indicates the current state of the pipeline. This is not stored in PFS along with the rest of this data structure--PPS.InspectPipeline fills it in

stopped: bool

same for stopped field

recent_error: Stringworkers_requested: i64workers_available: i64job_counts: HashMap<i32, i32>

job_counts and last_job_state indicates the number of jobs within this pipeline in a given state and the state of the most recently created job, respectively. This is not stored in PFS along with the rest of this data structure--PPS.InspectPipeline fills it in from the EtcdPipelineInfo.

last_job_state: i32output_branch: Stringresource_requests: Option<ResourceSpec>resource_limits: Option<ResourceSpec>sidecar_resource_limits: Option<ResourceSpec>input: Option<Input>description: Stringcache_size: Stringenable_stats: boolsalt: Stringreason: String

reason includes any error messages associated with a failed pipeline

max_queue_size: i64service: Option<Service>spout: Option<Spout>chunk_spec: Option<ChunkSpec>datum_timeout: Option<Duration>job_timeout: Option<Duration>githook_url: Stringspec_commit: Option<Commit>standby: booldatum_tries: i64scheduling_spec: Option<SchedulingSpec>pod_spec: Stringpod_patch: Strings3_out: boolmetadata: Option<Metadata>

Implementations

impl PipelineInfo[src]

pub fn state(&self) -> PipelineState[src]

Returns the enum value of state, or the default if the field is set to an invalid enum value.

pub fn set_state(&mut self, value: PipelineState)[src]

Sets state to the provided enum value.

pub fn last_job_state(&self) -> JobState[src]

Returns the enum value of last_job_state, or the default if the field is set to an invalid enum value.

pub fn set_last_job_state(&mut self, value: JobState)[src]

Sets last_job_state to the provided enum value.

Trait Implementations

impl Clone for PipelineInfo[src]

impl Debug for PipelineInfo[src]

impl Default for PipelineInfo[src]

impl Message for PipelineInfo[src]

impl PartialEq<PipelineInfo> for PipelineInfo[src]

impl StructuralPartialEq for PipelineInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]