-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
27 lines (22 loc) · 925 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Root directory to public DESI files
# change `dvs_ro` to `global` for write access
root=/dvs_ro/cfs/cdirs/desi/public
# Specific data release
release=$(root)/edr
# Subdirectory that we want to upload
subdir=$(release)
# Find: Scan for filesystem structure in the release
find.json: find.py makefile
python3 find.py $(release) --max-workers 128 --log-depth 2 -o $@
# Batch: Batch upload paths into large directories (>10^12 bytes), and add these to the queue
batch.json: batch.py find.json makefile
python3 batch.py $(release) --file-tree find.json --subdir $(subdir) --max-batch-size 1000000000000 -o $@
# Upload: Upload batch directories
upload: upload.py queue.json makefile
python3 upload.py $(root) \
--bucket s3://desidata \
--batch batch.json \
--remap '{ "$(release)/spectro/data": "raw_spectro_data", "$(release)/target": "target" }' \
--max-dirs 1000 \
--max-workers 128 \
2> upload_errors.txt