https://github.com/markelca/celery-flask-scaffold
Basic scaffold for projects involving task queues and long-running processes in Python
https://github.com/markelca/celery-flask-scaffold
celery docker-compose flask python
Last synced: about 2 months ago
JSON representation
Basic scaffold for projects involving task queues and long-running processes in Python
- Host: GitHub
- URL: https://github.com/markelca/celery-flask-scaffold
- Owner: MarkelCA
- Created: 2024-02-10T21:11:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T20:41:00.000Z (over 2 years ago)
- Last Synced: 2025-04-05T15:11:35.458Z (about 1 year ago)
- Topics: celery, docker-compose, flask, python
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# celery-flask-scaffold
Base structure for projects involving task queues and long-running processes. Uses Flask to trigger the tasks and redis as storage for the task metadata.
## Requirements
- [Docker](https://docs.docker.com/get-docker/)
## Usage
Init the containers
```
docker compose up --build
```
Trigger the tasks
```
curl -X POST localhost:5000/add -d "a=50" -d "b=10"
curl localhost:5000/fail
curl localhost:5000/migration
```
## Inspect task metadata
```
redis-cli -p 6380
get celery-task-meta-
```