pub struct ShutdownOptions {
pub workflow_completion_timeout: Duration,
}Expand description
What DBOS::shutdown_with does with the workflows still running.
A struct rather than a bare argument, matching the other _with calls of this crate.
Deliberately not #[non_exhaustive], which would forbid the ..Default::default() form.
Fields§
§workflow_completion_timeout: DurationHow long to wait for the workflows running in this process to finish before cancelling them.
Zero, the default, waits for nothing: every running workflow is cancelled at once. A
cancelled workflow is not marked; its row stays PENDING and it is recovered from its last
checkpoint, so the timeout trades shutdown time for work redone, never for work lost.
Trait Implementations§
Source§impl Clone for ShutdownOptions
impl Clone for ShutdownOptions
Source§impl Debug for ShutdownOptions
impl Debug for ShutdownOptions
Auto Trait Implementations§
impl Forget for ShutdownOptions
impl Freeze for ShutdownOptions
impl RefUnwindSafe for ShutdownOptions
impl Send for ShutdownOptions
impl Sync for ShutdownOptions
impl Unpin for ShutdownOptions
impl UnsafeUnpin for ShutdownOptions
impl UnwindSafe for ShutdownOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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