forked from kamba4/sunders
added changes to improve performance of sync
All checks were successful
Build (and tag) Images / build (push) Successful in 1m4s
All checks were successful
Build (and tag) Images / build (push) Successful in 1m4s
This commit is contained in:
parent
8612798373
commit
c768645960
5 changed files with 101 additions and 7 deletions
|
|
@ -22,11 +22,11 @@ mkdir -p logs
|
|||
seq "$((lastSeqNum + 1))" "$newSeqNum" > seq_list.txt
|
||||
|
||||
|
||||
cat seq_list.txt | xargs -n1 -P7 -I{} bash -c '
|
||||
cat seq_list.txt | xargs -n1 -P10 -I{} bash -c '
|
||||
seqnum="$1"
|
||||
f=$(printf "%09d" "$seqnum")
|
||||
path=$(echo "$f" | sed -E "s#(...)(...)(...)#\1/\2/\3#")
|
||||
url="${REPLICATE_URL}/${path}.osc.gz"
|
||||
echo "Downloading $url"
|
||||
curl -sL "$url" -o "${seqnum}.osc.gz" && gunzip "${seqnum}.osc.gz"
|
||||
curl -sL "$url" -o "${seqnum}.osc.gz" && gunzip "${seqnum}.osc.gz" && python filter_osc.py ${seqnum} && rm ${seqnum}.osc
|
||||
' _ {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue