Skip to content

Commit 8f1a813

Browse files
authored
Replace wget with curl
1 parent 762b703 commit 8f1a813

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎script/slurm_stoker.slurm.sh.jinja‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ echo "$(ls *.slurm.sh | wc -l) jobs to submit"
121121
host_squeue_url="https://raw.githubusercontent.com/mmore500/dishtiny/{{ repo_sha }}/script/host_squeue.sh"
122122
echo "host_squeue_url ${host_squeue_url}"
123123
host_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}"
125125
chmod +x "${host_squeue_script}"
126126
127127
host_sbatch_url="https://raw.githubusercontent.com/mmore500/dishtiny/{{ repo_sha }}/script/host_sbatch.sh"
128128
echo "host_sbatch_url ${host_sbatch_url}"
129129
host_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}"
131131
chmod +x "${host_sbatch_script}"
132132
133133
for JOB_SCRIPT in *.slurm.sh; do
@@ -183,8 +183,7 @@ fi
183183
184184
host_kickoff_url="https://raw.githubusercontent.com/mmore500/dishtiny/{{ repo_sha }}/script/slurm_stoker_containerized_kickoff.sh"
185185
echo "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
################################################################################
190189
echo

0 commit comments

Comments
 (0)