зеркало из https://github.com/Azure/AzureRMR.git
tweak waiting algo
This commit is contained in:
Родитель
11a3a1785f
Коммит
30e0a93f62
|
@ -314,14 +314,14 @@ private=list(
|
||||||
if(wait)
|
if(wait)
|
||||||
{
|
{
|
||||||
message("Waiting for provisioning to complete")
|
message("Waiting for provisioning to complete")
|
||||||
for(i in 1:1000) # some resources can take a long time to provision (AKS)
|
for(i in 1:1000) # some resources can take a long time to provision (AKS, Kusto)
|
||||||
{
|
{
|
||||||
message(".", appendLF=FALSE)
|
Sys.sleep(5)
|
||||||
res <- private$res_op()
|
res <- private$res_op()
|
||||||
status <- res$properties$provisioningState
|
status <- res$properties$provisioningState
|
||||||
if(status %in% c("Succeeded", "Error", "Failed"))
|
if(status %in% c("Succeeded", "Error", "Failed"))
|
||||||
break
|
break
|
||||||
Sys.sleep(5)
|
message(".", appendLF=FALSE)
|
||||||
}
|
}
|
||||||
if(status == "Succeeded")
|
if(status == "Succeeded")
|
||||||
message("\nDeployment successful")
|
message("\nDeployment successful")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче