The Koop application that serves downloads in opendata.arcgis.com.
$ git clone git@github.com:ArcGIS/opendata-koop.git
$ cd opendata-koop
$ cp config/default.example config/default.json
-
node scripts/drop-failed.js
: removes all resources withstatus: 'Failed'
-
node scripts/drop-processing.js
: removes all resources withstatus: 'Processing'
that are older than 24 hrs - [DEPRECATED]
node scripts/drop-processing-legacy.js
: removes all resources withstatus: 'Processing'
that are from Koop-Agol 1.x - [DEPRECATED]
node scripts/inspect-failed.js
: logs the ids of all datasets with `status in ('Failed', 'failed', 'Processing')
-
get /agol/queue/length
: gets number of agol import jobs waiting for processing -
get /agol/queue/working
: get the count of import jobs currently processing -
get /agol/queue/workers
: gets the status of all agol import workers -
get agol/queue/clearFailed
: remove all failed jobs from the queue and drop the resources from the database - Note: this is run by the app server automatically every 30 minutes
The following is only supported on Linux hosts.
$ docker build -t opendatakoop .
$ docker run -it --rm -v $PROJECT_ROOT/config:/usr/src/koop/config -v /var/log/koop:/usr/src/koop/log opendatakoop /bin/bash