Skip to content

drobison00/python-celery-task-routing

This branch is 2 commits behind bstiel/celery-task-routing:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 30, 2018
af2a552 · Jun 30, 2018

History

2 Commits
Jun 30, 2018
Jun 30, 2018
Jun 30, 2018
Jun 30, 2018
Jun 30, 2018
Jun 30, 2018
Jun 30, 2018

Repository files navigation

Unit Testing Celery Tasks

This projects contains the source code examples accompanying the blog post: https://www.python-celery.com/2018/05/29/task-routing/.

Docker is highly recommended.

  1. Bring up the docker stack: docker-compose up -d

  2. Execute example.py in one of the app-image containers: docker-compose exec worker-feeds pyton example.py --start_date=2018-01-01 --end_date=2018-05-29 --window=3

If you run without docker, make sure you run the services specified in the docker-compose.yml file individually and adjust the environment variables, ports etc as required.