pub enum UnloadPolicy {
Drain,
Cancel,
Detach,
}Expand description
What happens to a workflow’s LIVE runs when its definition goes away —
removed from the config, replaced by another version, or workflow.deleted.
Whatever the policy, withdrawing a definition always disarms its starts,
unsubscribes its MCP resources, stops admitting new runs, and pins the
definition each surviving run started against, so a run’s shape never
changes underneath it.
Variants§
Drain
Let live runs finish (bounded by timeout, then cancel). The default:
work that was admitted deserves to complete.
Cancel
Cancel live runs now.
Detach
Pin and forget: live runs finish whenever they finish.
Implementations§
Trait Implementations§
Source§impl Clone for UnloadPolicy
impl Clone for UnloadPolicy
Source§fn clone(&self) -> UnloadPolicy
fn clone(&self) -> UnloadPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UnloadPolicy
Source§impl Debug for UnloadPolicy
impl Debug for UnloadPolicy
Source§impl Default for UnloadPolicy
impl Default for UnloadPolicy
Source§fn default() -> UnloadPolicy
fn default() -> UnloadPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UnloadPolicy
impl<'de> Deserialize<'de> for UnloadPolicy
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnloadPolicy
Source§impl PartialEq for UnloadPolicy
impl PartialEq for UnloadPolicy
Source§impl Serialize for UnloadPolicy
impl Serialize for UnloadPolicy
impl StructuralPartialEq for UnloadPolicy
Auto Trait Implementations§
impl Freeze for UnloadPolicy
impl RefUnwindSafe for UnloadPolicy
impl Send for UnloadPolicy
impl Sync for UnloadPolicy
impl Unpin for UnloadPolicy
impl UnsafeUnpin for UnloadPolicy
impl UnwindSafe for UnloadPolicy
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
Mutably borrows from an owned value. Read more