forked from openaq/openaq-fetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.sh
executable file
·31 lines (24 loc) · 1.41 KB
/
index.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
# !/usr/bin/env bash
set -x
###############################################################################
#### Main fetch data process
###############################################################################
time timeout 10m npm start
###############################################################################
#### Adapters that consume lot memory and need to be run one by one
#### The follow adapters are currently disabled, in "sources/", but actually we are requesting data. We disable because
#### those adapter request huge amount of data, that sometimes made failing the fetch process and we are running them one by one.
###############################################################################
# # ARPALAZIO adapter requests ~7.5k items
# time timeout 3m node index.js --source="ARPALAZIO"
# # 'London Air Quality Network' adapter requests ~7.8k items
# time timeout 3m node index.js --source="London Air Quality Network"
# # GIOS adapter requests ~2k items
# time timeout 3m node index.js --source="GIOS"
###############################################################################
#### Adapters that are running in fargate
#### Reasons:
#### - Because the site response very slow, took more that 5 minutes to complete the fetch process
###############################################################################
# caaqm adapter requests ~1.5k items
# time timeout 3m node index.js --source="caaqm"