Trait apalis_core::worker::HeartBeat
source · pub trait HeartBeat {
// Required methods
fn heart_beat<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn interval(&self) -> Duration;
}Expand description
A worker can have heartbeats to keep alive or enqueue new jobs