taskline

Crates.iotaskline
lib.rstaskline
version0.9.4
sourcesrc
created_at2023-06-12 05:32:31.10661
updated_at2024-10-23 06:02:44.051947
descriptionA simple distributed task queue for Rust
homepage
repositoryhttps://github.com/daxartio/taskline
max_upload_size
id887799
size546,976
Danil Akhtarov (daxartio)

documentation

README

Taskline

Crates.io CI Docs.rs

The library allows for creating scheduled tasks via Redis for Rust.

producer.schedule(&"Hello!".to_string(), &(now() + 30000.)).await;

loop {
    let tasks = consumer.poll(&now()).await.unwrap();

    for task in tasks {
        println!("Consumed {:?}", task);
    }
}

That means the Consumed will be printed in 30 seconds.

You can customize a format of an event for redis. Write your wrapper over RedisBackend. See redis_json backend.

diagram

Features

  • Send/receive tasks in Redis
  • Delayed tasks
  • Support json
  • Deleting from a storage after handling
  • Support Redis Cluster
  • Metrics

Requirements

  • Redis 6.2.0 or higher

Installation

Cargo

cargo add taskline

License

Contribution

CONTRIBUTING.md

Commit count: 73

cargo fmt