-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathexecute_all.sh
38 lines (30 loc) · 938 Bytes
/
execute_all.sh
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
28
29
30
31
32
33
34
35
36
37
38
echo "Starting..." >> status.txt
echo "== Get all years =="
echo "== Get all years ==" >> status.txt
bash get_all_years.sh
[ $? -ne 0 ] && exit $?
echo "== Render flat =="
echo "== Render flat ==" >> status.txt
python3 render_flat.py $BUCKET_NAME written_paths.csv
[ $? -ne 0 ] && exit $?
echo "== Index data =="
echo "== Index data ==" >> status.txt
bash index_data.sh
[ $? -ne 0 ] && exit $?
echo "== Combine shards =="
echo "== Combine shards ==" >> status.txt
bash combine_shards.sh
[ $? -ne 0 ] && exit $?
echo "== Write main =="
echo "== Write main ==" >> status.txt
python3 write_main_index.py $BUCKET_NAME
[ $? -ne 0 ] && exit $?
echo "== Check indicies =="
echo "== Check indicies ==" >> status.txt
python check_read.py $BUCKET_NAME index
[ $? -ne 0 ] && exit $?
echo "== Check joined =="
echo "== Check joined ==" >> status.txt
python check_read.py $BUCKET_NAME joined
[ $? -ne 0 ] && exit $?
echo "Done." >> status.txt