Skip to content

Commit

Permalink
fix(servers): remove migrate block (#1027)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
MasterPtato committed Aug 7, 2024
1 parent 81a7b7a commit eab8ec4
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/ops/server-create/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,6 @@ pub async fn handle(
]),
..TaskGroup::new()
}]),
// Disables migrating in the event of a node drain
migrate: Some(Box::new(MigrateStrategy {
max_parallel: Some(0),
..MigrateStrategy::new()
})),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
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 migrating in the event of a node drain
migrate: Some(Box::new(MigrateStrategy {
max_parallel: Some(0),
..MigrateStrategy::new()
})),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
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 migrating in the event of a node drain
migrate: Some(Box::new(MigrateStrategy {
max_parallel: Some(0),
..MigrateStrategy::new()
})),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
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 migrating in the event of a node drain
migrate: Some(Box::new(MigrateStrategy {
max_parallel: Some(0),
..MigrateStrategy::new()
})),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
Expand Down
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 @@ -576,11 +576,6 @@ pub fn gen_lobby_docker_job(
]),
..TaskGroup::new()
}]),
// Disables migrating in the event of a node drain
migrate: Some(Box::new(MigrateStrategy {
max_parallel: Some(0),
..MigrateStrategy::new()
})),
// Disables rescheduling in the event of a node drain
reschedule: Some(Box::new(ReschedulePolicy {
attempts: Some(0),
Expand Down

0 comments on commit eab8ec4

Please sign in to comment.