Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

CIDC task manager for receiving messages and running tasks.

License

Notifications You must be signed in to change notification settings

CIMAC-CIDC/cidc-taskmanager

Repository files navigation

Branch Coverage Codacy Code Style License
Master codecov Codacy Badge Code style: black License: MIT
Staging codecov Codacy Badge Code style: black License: MIT

Celery Taskmanager

This service handles most of the backend logic for the CIDC system. It can be issued commands by the API through AMQP, and has scheduled tasks that it will perform periodically. Uses the Celery library to manage a pool of workers. This service is designed primarly to be run on a kubernetes cluster via a helm chart.

Image Build

The build is two-part. First build the Dockerfile named BaseImage, then build the Dockerfile named Dockerfile. The second Dockerfile imports the image built by BaseImage. BaseImage only needs to be rebuilt when the dependencies it installs need to be updated.

Running Tests

To run unit tests:

pipenv shell
pytest

To generate an XML for code coverage plugins:

pipenv shell
pytest --cov-report xml:coverage.xml --cov ./

To generate an HTML output:

pipenv shell pytest --html=report.html

About

CIDC task manager for receiving messages and running tasks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages