rafsaf / minimal-fastapi-postgres-template

minimal-fastapi-postgres-template based on official template but rewritten
https://minimal-fastapi-postgres-template.rafsaf.pl
MIT License
456 stars 60 forks source link

Celery support #41

Open Madi-S opened 6 months ago

Madi-S commented 6 months ago

Could you embed celery into this project? Would be pretty nice to have a message broker or something in this template.

rafsaf commented 6 months ago

Thanks for the issue.

Can you show me some example use case you are thinking about? and what (basic) functions you would like to see, I must say that going crazy with amount of code is not possible so it still stay minimal, but some support in core module with good README description could be done

Lately I started some work to migrate it from cookiecutter to github template repository (https://github.com/rafsaf/minimal-fastapi-postgres-template/tree/release-6.0 <-- here on this branch)

In general this also will have an impact on core elements in this repo like for example get rid of passlib with only bcrypt left, little project structure change, cleanup of pytest etc. etc. Migration to template has the only downside that there it will be not possible to opt out from "unwanted" code, so celery code would be common for everybody, I'm just curious of your needs.

Madi-S commented 6 months ago

For instance, send delayed emails from a specific handler