pub struct WorkflowTaskCleanupSupervisorConfig { /* private fields */ }Expand description
Validated bounds and timing for automatic terminal Task cleanup.
Implementations§
Source§impl WorkflowTaskCleanupSupervisorConfig
impl WorkflowTaskCleanupSupervisorConfig
Sourcepub fn new(
shard: WorkflowTaskCleanupShard,
retention: WorkflowTaskRetention,
lease_duration: LeaseDuration,
heartbeat_interval: Duration,
) -> Result<Self, WorkflowStoreError>
pub fn new( shard: WorkflowTaskCleanupShard, retention: WorkflowTaskRetention, lease_duration: LeaseDuration, heartbeat_interval: Duration, ) -> Result<Self, WorkflowStoreError>
Creates conservative cleanup timing and work bounds.
§Errors
Rejects a zero heartbeat or one not shorter than the lease.
Sourcepub const fn with_work_limits(
self,
discovery_limit: WorkflowTenantListLimit,
max_concurrency: NonZeroUsize,
cleanup_limit: WorkflowTaskCleanupLimit,
max_batches_per_tenant: NonZeroU32,
) -> Self
pub const fn with_work_limits( self, discovery_limit: WorkflowTenantListLimit, max_concurrency: NonZeroUsize, cleanup_limit: WorkflowTaskCleanupLimit, max_batches_per_tenant: NonZeroU32, ) -> Self
Sets bounded discovery, concurrency, batch size, and work per claim.
Sourcepub fn with_intervals(
self,
scan_interval: Duration,
error_backoff: Duration,
) -> Result<Self, WorkflowStoreError>
pub fn with_intervals( self, scan_interval: Duration, error_backoff: Duration, ) -> Result<Self, WorkflowStoreError>
Trait Implementations§
Source§impl Clone for WorkflowTaskCleanupSupervisorConfig
impl Clone for WorkflowTaskCleanupSupervisorConfig
Source§fn clone(&self) -> WorkflowTaskCleanupSupervisorConfig
fn clone(&self) -> WorkflowTaskCleanupSupervisorConfig
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 WorkflowTaskCleanupSupervisorConfig
impl Eq for WorkflowTaskCleanupSupervisorConfig
impl StructuralPartialEq for WorkflowTaskCleanupSupervisorConfig
Auto Trait Implementations§
impl Freeze for WorkflowTaskCleanupSupervisorConfig
impl RefUnwindSafe for WorkflowTaskCleanupSupervisorConfig
impl Send for WorkflowTaskCleanupSupervisorConfig
impl Sync for WorkflowTaskCleanupSupervisorConfig
impl Unpin for WorkflowTaskCleanupSupervisorConfig
impl UnsafeUnpin for WorkflowTaskCleanupSupervisorConfig
impl UnwindSafe for WorkflowTaskCleanupSupervisorConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.