Crates.io | taskline |
lib.rs | taskline |
version | 0.9.4 |
source | src |
created_at | 2023-06-12 05:32:31.10661 |
updated_at | 2024-10-23 06:02:44.051947 |
description | A simple distributed task queue for Rust |
homepage | |
repository | https://github.com/daxartio/taskline |
max_upload_size | |
id | 887799 |
size | 546,976 |
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.
cargo add taskline