change fetch to allow for killing worker nodes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Johannes Heuel
2022-09-20 18:24:09 +02:00
parent 47c453ff82
commit 37d7177126
3 changed files with 55 additions and 38 deletions

View File

@@ -39,6 +39,13 @@ pub struct StatusRequest {
pub id: i32,
}
#[derive(Serialize, Deserialize)]
pub enum FetchResponse {
Jobs(Vec<Job>),
StopWorking,
Nop,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct Job {
#[serde(default)]