fix: increase retry attempts while app deployment
improve ux while deploying with progress update
This commit is contained in:
parent
48226a3341
commit
ac55653e64
@ -131,13 +131,15 @@ pub async fn deploy_new_app_and_update_config(
|
|||||||
|
|
||||||
if new_app_res.error.is_empty() {
|
if new_app_res.error.is_empty() {
|
||||||
if let Some(launch_config) = launch_config {
|
if let Some(launch_config) = launch_config {
|
||||||
eprintln!("Deploying...");
|
eprint!("Deploying...");
|
||||||
tokio::time::sleep(tokio::time::Duration::from_millis(2500)).await;
|
tokio::time::sleep(tokio::time::Duration::from_millis(2500)).await;
|
||||||
let dtpm_client = Retry::spawn(FixedInterval::from_millis(1000).take(10), || {
|
let dtpm_client = Retry::spawn(FixedInterval::from_millis(1000).take(30), || {
|
||||||
log::debug!("retrying attestation and launch config update");
|
log::debug!("retrying attestation and launch config update");
|
||||||
|
eprint!(".");
|
||||||
connect_app_dtpm_client(&new_app_res.uuid)
|
connect_app_dtpm_client(&new_app_res.uuid)
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
println!("");
|
||||||
upload_files_pb(launch_config.filesystems.clone(), &dtpm_client).await?;
|
upload_files_pb(launch_config.filesystems.clone(), &dtpm_client).await?;
|
||||||
|
|
||||||
let config_data = Some(launch_config.into());
|
let config_data = Some(launch_config.into());
|
||||||
|
Loading…
Reference in New Issue
Block a user