From fa3734ba2f6a87a2664d04d590a72af85e05754f Mon Sep 17 00:00:00 2001 From: Mark Hamilton Date: Thu, 8 Jun 2023 16:08:09 +0100 Subject: [PATCH] chore: retry conda install and add a timeout (#1983) --- templates/conda.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/conda.yml b/templates/conda.yml index b716b602d5..e8aeb14cf1 100644 --- a/templates/conda.yml +++ b/templates/conda.yml @@ -13,6 +13,6 @@ steps: # path: $(CONDA_CACHE_DIR) # cacheHitVar: CONDA_CACHE_RESTORED - bash: | - conda env create -f environment.yml -v -v -v + (timeout 15m conda env create -f environment.yml -v) || (timeout 15m conda env create -f environment.yml -v) displayName: Create Anaconda environment # condition: eq(variables.CONDA_CACHE_RESTORED, 'false')