File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,13 +121,13 @@ echo "$(ls *.slurm.sh | wc -l) jobs to submit"
121121host_squeue_url="https://raw.githubusercontent.com/mmore500/dishtiny/{{ repo_sha }}/script/host_squeue.sh"
122122echo "host_squeue_url ${host_squeue_url}"
123123host_squeue_script="$(mktemp)"
124- wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 10 -qO- "${host_squeue_url}" > "${host_squeue_script}"
124+ curl --fail --show-error --silent --location --retry 10 --retry-delay 1 --max-time 15 --connect-timeout 20 "${host_squeue_url}" -o "${host_squeue_script}"
125125chmod +x "${host_squeue_script}"
126126
127127host_sbatch_url="https://raw.githubusercontent.com/mmore500/dishtiny/{{ repo_sha }}/script/host_sbatch.sh"
128128echo "host_sbatch_url ${host_sbatch_url}"
129129host_sbatch_script="$(mktemp)"
130- wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 10 -qO- "${host_sbatch_url}" > "${host_sbatch_script}"
130+ curl --fail --show-error --silent --location --retry 10 --retry-delay 1 --max-time 15 --connect-timeout 20 "${host_sbatch_url}" -o "${host_sbatch_script}"
131131chmod +x "${host_sbatch_script}"
132132
133133for JOB_SCRIPT in *.slurm.sh; do
183183
184184host_kickoff_url="https://raw.githubusercontent.com/mmore500/dishtiny/{{ repo_sha }}/script/slurm_stoker_containerized_kickoff.sh"
185185echo "host_kickoff_url ${host_kickoff_url}"
186- wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 10 -qO- "${host_kickoff_url}" \
187- | bash -s "{{ bucket }}" "{{ container_tag }}" "{{ repo_sha }}" "{{ title }}"
186+ curl --fail --show-error --silent --location --retry 10 --retry-delay 1 --max-time 15 --connect-timeout 20 "${host_kickoff_url}" | bash -s "{{ bucket }}" "{{ container_tag }}" "{{ repo_sha }}" "{{ title }}"
188187
189188################################################################################
190189echo
You can’t perform that action at this time.
0 commit comments