Skip to main content

register_worker

Function register_worker 

Source
pub async fn register_worker<E>(
    conn: &mut E,
    queue: &str,
    worker: &WorkerContext,
    last_seen: &Timestamp,
    backend_type: &str,
) -> Result<(), Error>
where for<'e> &'e mut E: Executor<'e, Database = Postgres>,
Expand description

Register a worker in the database

Errors if worker already exists