The Cybercommons framework is a Django Rest Framework API. The API leverages MongoDB to provide a Catalog and Data Store for storing metadata and data within a JSON document database. The API also includes Celery which is an asynchronous task queue/jobs based on distributed message passing.
This is an example Celery worker that can be used as a starting point for deploying a remote worker.
- Python 3.7+
- GNU Make or equivalent
- Edit config.env to point
CYBERCOMMONS_PATH
to local cybercommons' root path. This is used to pull in secrets. - Edit
CELERY_IMPORTS
andCELERY_SOURCE
in config.env to point to desired github repository for task queue. - Initialize Python virtual environment and copy ssl certs from cybercommons.
make init
- With the cybercommons server running and ports 5671 and 27017 accessible, run the following to connect.
make run
- To stop Celery, use
CTRL+C
- Clean up / remove generated files
make clean