Skip to main content

claim_with_lease

Function claim_with_lease 

Source
pub fn claim_with_lease(
    conn: &Connection,
    worker_id: &str,
    visibility_timeout_secs: u64,
) -> Result<Option<(String, Value)>>
Expand description

Claim the next eligible job for a worker and record the configured lease timeout.