Skip to main content

lock_tasks

Function lock_tasks 

Source
pub async fn lock_tasks<E>(
    conn: &mut E,
    task_ids: &[String],
    worker_id: &str,
) -> Result<u64, Error>
where for<'e> &'e mut E: Executor<'e, Database = Postgres>,
Expand description

Lock multiple tasks, given a worker