pub struct BootFlowTaskPolicy { /* private fields */ }Expand description
Typed Boot queue policy applied to every task dispatched by one manager.
Caller-assigned job IDs remain per-submission values and are therefore set
through BootFlowTaskManager::enqueue_with_options. This policy owns the
settings that are safe to share across scheduler dispatches: retry,
execution timeout, stalled-job tolerance, terminal record cleanup, and
logical-target deduplication.
Implementations§
Source§impl BootFlowTaskPolicy
impl BootFlowTaskPolicy
Sourcepub fn with_retry_policy(self, retry_policy: QueueRetryPolicy) -> Self
pub fn with_retry_policy(self, retry_policy: QueueRetryPolicy) -> Self
Sets the Boot job retry policy.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets the maximum execution duration of each Boot job attempt.
Sourcepub fn with_max_stalled_count(self, max_stalled_count: u32) -> Self
pub fn with_max_stalled_count(self, max_stalled_count: u32) -> Self
Sets how many stalled recoveries a Boot job may survive.
Sourcepub fn remove_on_complete(self, remove: bool) -> Self
pub fn remove_on_complete(self, remove: bool) -> Self
Configures removal of completed Boot job records.
Sourcepub fn remove_on_fail(self, remove: bool) -> Self
pub fn remove_on_fail(self, remove: bool) -> Self
Configures removal of failed Boot job records.
Sourcepub fn with_deduplication(
self,
deduplication: BootFlowTaskDeduplication,
) -> Self
pub fn with_deduplication( self, deduplication: BootFlowTaskDeduplication, ) -> Self
Sets logical-target deduplication behavior.
Sourcepub fn retry_policy(&self) -> &QueueRetryPolicy
pub fn retry_policy(&self) -> &QueueRetryPolicy
Returns the Boot job retry policy.
Sourcepub fn max_stalled_count(&self) -> u32
pub fn max_stalled_count(&self) -> u32
Returns the maximum permitted stalled recovery count.
Sourcepub fn removes_completed_jobs(&self) -> bool
pub fn removes_completed_jobs(&self) -> bool
Returns whether completed Boot job records are removed.
Sourcepub fn removes_failed_jobs(&self) -> bool
pub fn removes_failed_jobs(&self) -> bool
Returns whether failed Boot job records are removed.
Sourcepub fn deduplication(&self) -> BootFlowTaskDeduplication
pub fn deduplication(&self) -> BootFlowTaskDeduplication
Returns logical-target deduplication behavior.
Trait Implementations§
Source§impl Clone for BootFlowTaskPolicy
impl Clone for BootFlowTaskPolicy
Source§fn clone(&self) -> BootFlowTaskPolicy
fn clone(&self) -> BootFlowTaskPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more