https://github.com/testdrivenio/falcon-celery
Example of how to handle background processes with Falcon, Celery, and Docker
https://github.com/testdrivenio/falcon-celery
celery docker falcon falcon-framework task-queue
Last synced: 7 months ago
JSON representation
Example of how to handle background processes with Falcon, Celery, and Docker
- Host: GitHub
- URL: https://github.com/testdrivenio/falcon-celery
- Owner: testdrivenio
- License: mit
- Created: 2018-03-06T14:07:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T15:29:22.000Z (about 2 years ago)
- Last Synced: 2024-08-07T23:41:44.402Z (11 months ago)
- Topics: celery, docker, falcon, falcon-framework, task-queue
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 35
- Watchers: 4
- Forks: 12
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Falcon + Celery
Example of how to handle background processes with Falcon, Celery, and Docker
### Quick Start
Spin up the containers:
```sh
$ docker-compose up -d
```Open your browser to http://localhost:8000/ping to view the app or to http://localhost:5555 to view the Flower dashboard.
Trigger a new task:
```sh
$ curl -X POST http://localhost:8000/create \
-d '{"number":"3"}' \
-H "Content-Type: application/json"
```Check the status:
```sh
$ curl http://localhost:8000/status/
```### Want to learn how to build this?
Check out the [post](https://testdriven.io/asynchronous-tasks-with-falcon-and-celery).