Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.26 KB

README.md

File metadata and controls

53 lines (35 loc) · 1.26 KB

The purpose of this app is to demonstrate a solution for managing concurrent Celery tasks via the celery-progress package.

Click this screenshot for a video demo. Click to view on Youtube

Architecture

Architecture Diagram

Getting Started

  1. Generate an API key at api.nasa.gov and add it to this app's tasks.py file

  2. Start RabbitMQ and Redis on Docker

docker run -d -p 5672:5672 rabbitmq
docker run -d -p 6379:6379 redis
  1. From within this repo's root directory, run the following commands in order to install this project's dependencies in a virtual environment and run a Django web server:
python3 -m venv myvenv
source myvenv/bin/activate
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 manage.py runserver
  1. Open a second terminal window and run the following:
source myvenv/bin/activate
python3 -m celery -A demo_project worker -l info --concurrency=8