Skip to content

Example configuration for creating a remote Celery worker with cybercommons

Notifications You must be signed in to change notification settings

oulib-datacatalog/celery-remote-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cybercommons Remote Celery Worker

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.

Requirements

  • Python 3.7+
  • GNU Make or equivalent

Setup

  1. Edit config.env to point CYBERCOMMONS_PATH to local cybercommons' root path. This is used to pull in secrets.
  2. Edit CELERY_IMPORTS and CELERY_SOURCE in config.env to point to desired github repository for task queue.
  3. Initialize Python virtual environment and copy ssl certs from cybercommons.
    make init
  4. With the cybercommons server running and ports 5671 and 27017 accessible, run the following to connect.
    make run
  5. To stop Celery, use CTRL+C
  6. Clean up / remove generated files
    make clean

About

Example configuration for creating a remote Celery worker with cybercommons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published