add thread requirement for jobs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user