Skip to main content

ExecutableTaskRecord

Trait ExecutableTaskRecord 

Source
pub trait ExecutableTaskRecord<Kind>: TaskRecord<Kind> {
    // Required methods
    fn attempt_count(&self) -> i32;
    fn max_attempts(&self) -> i32;
}
Expand description

Minimal read-only view required to execute a claimed task.

Required Methods§

Source

fn attempt_count(&self) -> i32

Number of attempts already persisted before the current execution.

Source

fn max_attempts(&self) -> i32

Maximum number of attempts allowed for automatic retry.

Implementors§