Skip to content

Commit

Permalink
fix(ds): remove reschedule block (#1082)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->
Fixes RVTEE-527
## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
MasterPtato committed Aug 25, 2024
1 parent 4b3a1ab commit 4488c74
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 25 deletions.
5 changes: 0 additions & 5 deletions svc/pkg/ds/src/workflows/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -878,11 +878,6 @@ async fn submit_job(ctx: &ActivityCtx, input: &SubmitJobInput) -> GlobalResult<S
]),
..TaskGroup::new()
}]),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
..ReschedulePolicy::new()
})),
..Job::new()
};

Expand Down
5 changes: 0 additions & 5 deletions svc/pkg/faker/ops/job-template/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ fn gen_job(
tasks: Some(vec![task]),
..TaskGroup::new()
}]),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
..ReschedulePolicy::new()
})),
..Job::new()
})
}
Expand Down
5 changes: 0 additions & 5 deletions svc/pkg/job-run/worker/src/workers/create/create_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,6 @@ mod tests {
}]),
..TaskGroup::new()
}]),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
..ReschedulePolicy::new()
})),
..Job::new()
}
}
Expand Down
5 changes: 0 additions & 5 deletions svc/pkg/mm-config/ops/version-prepare/src/prewarm_ats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,6 @@ fn gen_prewarm_job(artifact_count: usize) -> GlobalResult<nomad_client::models::
}]),
..TaskGroup::new()
}]),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
..ReschedulePolicy::new()
})),
..Job::new()
})
}
5 changes: 0 additions & 5 deletions svc/pkg/mm/worker/src/workers/lobby_create/nomad_job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,6 @@ pub fn gen_lobby_docker_job(
]),
..TaskGroup::new()
}]),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
..ReschedulePolicy::new()
})),
..Job::new()
})
}
Expand Down

0 comments on commit 4488c74

Please sign in to comment.