davechallis/ocypod

Add a Rust client Interface

Opened this issue · 0 comments

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 :)