pub async fn enqueue_on<'e, E: PgExecutor<'e>>(
executor: E,
job: &NewJob,
) -> Result<Uuid>Expand description
Add job on executor, usually the caller’s transaction, and return its id.
The job then commits or rolls back with the transaction.
§Errors
Fails on a database error.