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

Latest commit

 

History

History
30 lines (19 loc) · 3.51 KB

README.md

File metadata and controls

30 lines (19 loc) · 3.51 KB
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