There was an error while loading. Please reload this page.
2 parents b0ed010 + a5fa9bc commit fe489d9Copy full SHA for fe489d9
1 file changed
src/command/server.rs
@@ -1484,10 +1484,6 @@ pub(crate) async fn switch_deployment(
1484
)));
1485
}
1486
1487
- conn.activate_deployment(deployment_id, chrono::Utc::now())
1488
- .await
1489
- .map_err(|e| SwitchError::Other(e.into()))?;
1490
-
1491
let old = std::mem::take(&mut ctx.exec_task_handles);
1492
futures_util::future::join_all(
1493
old.iter()
@@ -1528,6 +1524,10 @@ pub(crate) async fn switch_deployment(
1528
1524
closed: false,
1529
1525
};
1530
1526
1527
+ conn.activate_deployment(deployment_id, chrono::Utc::now())
+ .await
+ .map_err(|e| SwitchError::Other(e.into()))?;
+
1531
info!(%deployment_id, "Switched to new deployment");
1532
Ok(SwitchOutcome::Switched)
1533
} else {
0 commit comments