Skip to main content

enqueue_all_on

Function enqueue_all_on 

Source
pub async fn enqueue_all_on(
    connection: &mut PgConnection,
    jobs: &[NewJob],
) -> Result<Vec<Uuid>>
Expand description

Add every job in jobs on connection, returning their ids in order. On a transaction they commit or roll back together; Queue::enqueue_all opens one.

ยงErrors

Fails on a database error, after which a transaction must be rolled back.