Example of how to handle background processes with Falcon, Celery, and Docker
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project Update requirements.txt Jun 13, 2018
.gitignore init Mar 6, 2018
LICENSE init Mar 6, 2018
README.md added a readme Mar 12, 2018
docker-compose.yml added celery Mar 11, 2018
test.sh added celery Mar 11, 2018

README.md

Falcon + Celery

Example of how to handle background processes with Falcon, Celery, and Docker

Quick Start

Spin up the containers:

$ docker-compose up -d

Open your browser to http://localhost:8000/ping view the app or to http://localhost:5555 to view the RQ dashboard.

Trigger a new task:

$ curl -X POST http://localhost:8000/create \
    -d '{"number":"3"}' \
    -H "Content-Type: application/json"

Check the status:

$ curl http://localhost:8000/status/<ADD_TASK_ID>

Want to learn how to build this?

Check out the post.