davechallis / ocypod

Ocypod is a Redis-backed service for orchestrating background jobs. Clients/workers can be written in any language, using HTTP/JSON to queue/fetch jobs, store results, etc.
Apache License 2.0
193 stars 13 forks source link

Add a Rust client Interface #31

Open AzHicham opened 1 year ago

AzHicham commented 1 year ago

Hello,

Love this project especially the fact that it is agnostic to the language and only based on a REST API. Nevertheless, IMO it could be really awesome to have a a rust client around this REST API. This way we could have a celery-like framework

For example :

#[derive(Serialize, DeSerialize)]
struct Task1Args {
    arg1: u8,
}

let taskArgs = Task1Args{ ... }

let job_id = ocypod::send_task(taskArgs)?;

let status: Status = ocypod::get_status(job_id)?;

Thank you :)