Skip to content
Snippets Groups Projects
Commit dea299f6 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

force pull container

parent 20090a6a
No related branches found
No related tags found
1 merge request!9Draft: Partition parquet dataset for sync with s5cmd
...@@ -109,7 +109,7 @@ if [[ -z $filter || -z $input_parquet || -z $destination ]]; then ...@@ -109,7 +109,7 @@ if [[ -z $filter || -z $input_parquet || -z $destination ]]; then
exit 1 exit 1
fi fi
singularity pull gpfs.sif docker://${sif} singularity pull --force gpfs.sif docker://${sif}
split_cmd="singularity exec --bind /data,/scratch \ split_cmd="singularity exec --bind /data,/scratch \
gpfs.sif python3 fpart-db.py \ gpfs.sif python3 fpart-db.py \
...@@ -126,9 +126,10 @@ transfer_cmd="singularity exec --bind /data,/scratch \ ...@@ -126,9 +126,10 @@ transfer_cmd="singularity exec --bind /data,/scratch \
--credentials-file ${credentials_file} \ --credentials-file ${credentials_file} \
--profile $profile \ --profile $profile \
--retry-count 3 \ --retry-count 3 \
run ${part_dir}/part_${SLURM_ARRAY_TASK_ID}.txt" run ${part_dir}/part_\${SLURM_ARRAY_TASK_ID}.txt"
>&2 cat << EOF >&2 cat << EOF
--------------------------------------------------------------------------------
filter: ${filter} filter: ${filter}
input parquet: ${input_parquet} input parquet: ${input_parquet}
destination: ${destination} destination: ${destination}
...@@ -146,8 +147,12 @@ partition: ${partition} ...@@ -146,8 +147,12 @@ partition: ${partition}
time: ${time} time: ${time}
mem: ${mem} mem: ${mem}
split dataset command: ${split_cmd} split dataset command:
transfer command: ${transfer_cmd} $(printf "%s" "${split_cmd}")
transfer command:
$(printf "%s" "${transfer_cmd}")
--------------------------------------------------------------------------------
EOF EOF
mkdir -p out mkdir -p out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment