pub enum SignatureCheckMode {
Strict,
Relaxed,
}Expand description
Controls how strictly workflow signatures are validated on resume.
The workflow signature encodes the persisted contract (step keys, wait keys,
timeout, and input/output type names). By default (Strict) a mismatch
between the signature stored on the run and the signature compiled into the
current binary blocks the run with BlockedSignatureMismatch.
During a rolling deploy, all nodes run the same source version but the new
binary may carry a different signature if any tracked field changed — even
when the change is safe to resume through. Setting signature_check = "relaxed" in [workflow] tells the runtime to accept any registered
handler for the matching (name, version) pair and skip the hash
comparison, preventing stranded runs during the transition window.
Switch back to "strict" once all nodes are on the new binary.
Variants§
Strict
Require an exact signature match before resuming a run (default).
Relaxed
Accept any handler registered for the matching (name, version) pair,
ignoring the signature hash. Use during rolling deploys.
Trait Implementations§
Source§impl Clone for SignatureCheckMode
impl Clone for SignatureCheckMode
Source§fn clone(&self) -> SignatureCheckMode
fn clone(&self) -> SignatureCheckMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SignatureCheckMode
impl Debug for SignatureCheckMode
Source§impl Default for SignatureCheckMode
impl Default for SignatureCheckMode
Source§fn default() -> SignatureCheckMode
fn default() -> SignatureCheckMode
Source§impl<'de> Deserialize<'de> for SignatureCheckMode
impl<'de> Deserialize<'de> for SignatureCheckMode
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 PartialEq for SignatureCheckMode
impl PartialEq for SignatureCheckMode
Source§fn eq(&self, other: &SignatureCheckMode) -> bool
fn eq(&self, other: &SignatureCheckMode) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for SignatureCheckMode
impl Serialize for SignatureCheckMode
impl Copy for SignatureCheckMode
impl Eq for SignatureCheckMode
impl StructuralPartialEq for SignatureCheckMode
Auto Trait Implementations§
impl Freeze for SignatureCheckMode
impl RefUnwindSafe for SignatureCheckMode
impl Send for SignatureCheckMode
impl Sync for SignatureCheckMode
impl Unpin for SignatureCheckMode
impl UnsafeUnpin for SignatureCheckMode
impl UnwindSafe for SignatureCheckMode
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> 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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more