job_queue 0.0.13

A simple, efficient Rust library for handling asynchronous job processing and task queuing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use job_queue::{Client, Error};

#[tokio::main]
async fn main() -> Result<(), Error> {
    let queue = Client::builder()
        .connect("postgres://kabbouchi:@localhost/job_queue")
        .await?;

    queue
        .retry_job_id("5f54f970-87ba-4aea-a0e1-1d0f6a80e17a")
        .await?;

    Ok(())
}