add thread requirement for jobs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Johannes Heuel
2022-10-20 11:38:24 +02:00
parent 71098b44e6
commit ea30f57ea9
3 changed files with 59 additions and 12 deletions

View File

@@ -46,6 +46,8 @@ pub struct Job {
pub cmd: String,
#[serde(default = "Status::default")]
pub status: Status,
#[serde(default)]
pub threads: i32,
}
#[derive(Serialize, Deserialize)]
@@ -61,6 +63,8 @@ pub struct RegisterResponse {
#[derive(Serialize, Deserialize)]
pub struct FetchRequest {
pub worker_id: String,
#[serde(default)]
pub threads: i32,
}
#[derive(Serialize, Deserialize)]