[][src]Struct pachyderm::pps::EtcdPipelineInfo

pub struct EtcdPipelineInfo {
    pub state: i32,
    pub reason: String,
    pub spec_commit: Option<Commit>,
    pub job_counts: HashMap<i32, i32>,
    pub auth_token: String,
    pub last_job_state: i32,
    pub parallelism: u64,
}

EtcdPipelineInfo is proto that Pachd stores in etcd for each pipeline. It tracks the state of the pipeline, and points to its metadata in PFS (and, by pointing to a PFS commit, de facto tracks the pipeline's version)

Fields

state: i32reason: Stringspec_commit: Option<Commit>job_counts: HashMap<i32, i32>auth_token: Stringlast_job_state: i32parallelism: u64

parallelism tracks the literal number of workers that this pipeline should run. Unlike PipelineInfo.ParallelismSpec, this accounts for the number of nodes in the k8s cluster if Coefficient parallelism is used (i.e. if Coefficient is 2 and the cluster has 5 nodes, this will be set to 10 by pachd). This allows the worker master to shard work correctly without k8s privileges and without knowing the number of cluster nodes in the Coefficient case.

Implementations

impl EtcdPipelineInfo[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 EtcdPipelineInfo[src]

impl Debug for EtcdPipelineInfo[src]

impl Default for EtcdPipelineInfo[src]

impl Message for EtcdPipelineInfo[src]

impl PartialEq<EtcdPipelineInfo> for EtcdPipelineInfo[src]

impl StructuralPartialEq for EtcdPipelineInfo[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]