Skip to content

cognoma/task-service

Repository files navigation

THIS REPOSITORY HAS BEEN DEPRECATED. task-service has been combined into the core-service repository.

Cognoma task-service

This repository houses the service, accessible by HTTP RESTful API, responsable for manageing backround tasks within the Cognoma application backend.

Getting started

Make sure to fork this repository on +GitHub first.

Prerequisites

  • Docker - tested with 1.12.1
  • Docker Compose - tested with 1.8.0

Setup Postgres

docker-compose up

Sometimes the postgres image takes a while to load on first run and the Django server starts up first. If this happens just ctrl+C and rerun docker-compose up

The code in the repository is also mounted as a volume in the task-service container. This means you can edit code on your host machine, using your favorite editor, and the django server will automatically restart to reflect the code changes.

The server should start up at http://localhost:8080/, see the API docs.

Running tests locally

Make sure the service is up first using docker-compose up then run:

docker-compose exec task python manage.py test

About

Cognoma Background Tasks API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages