Rust Sidekiq Client
Sidekiq client allowing to push jobs. Using the Sidekiq job format as reference.
Dependencies
Installation
[]
= "0.12"
Default environment variables
- REDIS_URL="redis://127.0.0.1/"
Used by
Examples
use ;
use ;
use ;
let ns = "test";
let client_opts = ClientOpts ;
let pool = create_redis_pool.unwrap;
let client = new;
let class = "MyClass".to_string;
// basic job
let job = new;
match client.push
// scheduled-jobs (perform_in)
let job = new;
let interval = hours;
match client.perform_in
// scheduled-jobs (perform_at)
let job = new;
let start_at = now_utc.checked_add.unwrap;
match client.perform_at
REFERENCES
- http://julienblanchard.com/2015/using-resque-with-rust/
- https://github.com/d-unseductable/rust_sidekiq
LICENSE
The MIT License
Copyright (c) 2016-2021 Laurent Arnoud laurent@spkdev.net