Skip to main content

heartbeat

Function heartbeat 

Source
pub fn heartbeat(
    conn: &Connection,
    job_id: &str,
    worker_id: &str,
) -> Result<bool, Error>
Expand description

Update the heartbeat timestamp for a processing job.

Returns true if the heartbeat was recorded, false if the job is no longer processing or does not belong to this worker.