mapseed / api

Legacy api for the Mapseed platform
https://mapseed.org
GNU General Public License v3.0
7 stars 7 forks source link

Fix celery tasks and set up broker #139

Closed jalMogo closed 6 years ago

jalMogo commented 6 years ago

Our celery tasks are not being run, which means that our DataSnapshotRequestListView and DataSnapshotInstanceView views are not working. Until then, our dataset snapshots, and other features, are not working.

To get celery working in prod, we will need to run a worker process for it, and configure Django with a broker: http://docs.celeryproject.org/en/3.1/getting-started/first-steps-with-celery.html#choosing-a-broker

Note that we can work around this issue by hitting our http://localhost:8001/api/v2/smartercleanup/datasets/demo/places?format=csv&include_private=true endpoint, but that endpoint does not handle pagination. A proper implementation would involve leveraging our bulk data views.