An open API service indexing awesome lists of open source software.

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

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-
```