File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,19 +138,7 @@ wdl-run-lipid-local:
138138get-lcms-metab-test-data :
139139 @echo " Downloading test data for LC-MS metabolomics workflow"
140140 @mkdir -p test_data
141- @for i in 1 2 3 4 5; do \
142- echo " Download attempt $$ i of 5..." ; \
143- if curl --retry 5 --retry-delay 10 --retry-max-time 600 --connect-timeout 60 --max-time 900 -L -o test_data/test_lcms_metab_data.zip https://nmdcdemo.emsl.pnl.gov/metabolomics/test_data/metams_lcms_metab_test_data/test_lcms_metab_data.zip; then \
144- break; \
145- else \
146- echo "Download attempt $$i failed, waiting 30 seconds before retry..."; \
147- sleep 30; \
148- fi; \
149- done
150- @if [ ! -f test_data/test_lcms_metab_data.zip ]; then \
151- echo "All download attempts failed"; \
152- exit 1; \
153- fi
141+ @curl --retry 3 --retry-delay 5 --connect-timeout 30 --max-time 300 -L -o test_data/test_lcms_metab_data.zip https://nmdcdemo.emsl.pnl.gov/metabolomics/test_data/metams_lcms_metab_test_data/test_lcms_metab_data.zip
154142 @unzip test_data/test_lcms_metab_data.zip -d test_data/
155143 @rm test_data/test_lcms_metab_data.zip
156144 @echo " Test data downloaded and unzipped"
You can’t perform that action at this time.
0 commit comments