pub enum ResourcesStatus {
Stopped,
Provisioning,
Provisioned,
Stopping,
}Expand description
Pipeline resources status.
/start (early start failed)
┌───────────────────┐
│ ▼
Stopped ◄────────── Stopping
/start │ ▲
│ │ /stop?force=true
│ │ OR: timeout (from Provisioning)
▼ │ OR: fatal runtime or resource error
⌛Provisioning ────────────│ OR: runtime status is Suspended
│ │
│ │
▼ │
Provisioned ─────────────┘§Desired and actual status
We use the desired state model to manage the lifecycle of a pipeline. In this model, the pipeline has two status attributes associated with it: the desired status, which represents what the user would like the pipeline to do, and the current status, which represents the actual (last observed) status of the pipeline. The pipeline runner service continuously monitors the desired status field to decide where to steer the pipeline towards.
There are two desired statuses:
Provisioned(set by invoking/start)Stopped(set by invoking/stop?force=true)
The user can monitor the current status of the pipeline via the GET /v0/pipelines/{name}
endpoint. In a typical scenario, the user first sets the desired status, e.g., by invoking the
/start endpoint, and then polls the GET /v0/pipelines/{name} endpoint to monitor the actual
status of the pipeline until its deployment_resources_status attribute changes to
Provisioned indicating that the pipeline has been successfully provisioned, or Stopped with
deployment_error being set.
JSON schema
{
"description": "Pipeline resources status.\n\n```text\n/start (early start failed)\n┌───────────────────┐\n│ ▼\nStopped ◄────────── Stopping\n/start │ ▲\n│ │ /stop?force=true\n│ │ OR: timeout (from Provisioning)\n▼ │ OR: fatal runtime or resource error\n⌛Provisioning ────────────│ OR: runtime status is Suspended\n│ │\n│ │\n▼ │\nProvisioned ─────────────┘\n```\n\n### Desired and actual status\n\nWe use the desired state model to manage the lifecycle of a pipeline. In this model, the\npipeline has two status attributes associated with it: the **desired** status, which represents\nwhat the user would like the pipeline to do, and the **current** status, which represents the\nactual (last observed) status of the pipeline. The pipeline runner service continuously monitors\nthe desired status field to decide where to steer the pipeline towards.\n\nThere are two desired statuses:\n- `Provisioned` (set by invoking `/start`)\n- `Stopped` (set by invoking `/stop?force=true`)\n\nThe user can monitor the current status of the pipeline via the `GET /v0/pipelines/{name}`\nendpoint. In a typical scenario, the user first sets the desired status, e.g., by invoking the\n`/start` endpoint, and then polls the `GET /v0/pipelines/{name}` endpoint to monitor the actual\nstatus of the pipeline until its `deployment_resources_status` attribute changes to\n`Provisioned` indicating that the pipeline has been successfully provisioned, or `Stopped` with\n`deployment_error` being set.",
"type": "string",
"enum": [
"Stopped",
"Provisioning",
"Provisioned",
"Stopping"
]
}Variants§
Trait Implementations§
Source§impl Clone for ResourcesStatus
impl Clone for ResourcesStatus
Source§fn clone(&self) -> ResourcesStatus
fn clone(&self) -> ResourcesStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourcesStatus
impl Debug for ResourcesStatus
Source§impl<'de> Deserialize<'de> for ResourcesStatus
impl<'de> Deserialize<'de> for ResourcesStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<&ResourcesStatus> for ResourcesStatus
impl From<&ResourcesStatus> for ResourcesStatus
Source§fn from(value: &ResourcesStatus) -> Self
fn from(value: &ResourcesStatus) -> Self
Source§impl FromStr for ResourcesStatus
impl FromStr for ResourcesStatus
Source§impl Hash for ResourcesStatus
impl Hash for ResourcesStatus
Source§impl Ord for ResourcesStatus
impl Ord for ResourcesStatus
Source§fn cmp(&self, other: &ResourcesStatus) -> Ordering
fn cmp(&self, other: &ResourcesStatus) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ResourcesStatus
impl PartialEq for ResourcesStatus
Source§impl PartialOrd for ResourcesStatus
impl PartialOrd for ResourcesStatus
Source§impl Serialize for ResourcesStatus
impl Serialize for ResourcesStatus
Source§impl ToString for ResourcesStatus
impl ToString for ResourcesStatus
Source§impl TryFrom<&String> for ResourcesStatus
impl TryFrom<&String> for ResourcesStatus
Source§type Error = ConversionError
type Error = ConversionError
Source§impl TryFrom<&str> for ResourcesStatus
impl TryFrom<&str> for ResourcesStatus
Source§type Error = ConversionError
type Error = ConversionError
Source§impl TryFrom<String> for ResourcesStatus
impl TryFrom<String> for ResourcesStatus
Source§type Error = ConversionError
type Error = ConversionError
impl Copy for ResourcesStatus
impl Eq for ResourcesStatus
impl StructuralPartialEq for ResourcesStatus
Auto Trait Implementations§
impl Freeze for ResourcesStatus
impl RefUnwindSafe for ResourcesStatus
impl Send for ResourcesStatus
impl Sync for ResourcesStatus
impl Unpin for ResourcesStatus
impl UnwindSafe for ResourcesStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.