[Python] Launch only one background task with multiple Gunicorn workers

Discussão em 'Python' iniciado por Stack, Março 5, 2025.

  1. Stack

    Stack Membro Participativo

    I have a flask application that I run with Gunicorn.

    The application itself would ideally be run with multiple workers. I also have some data I need to consume from Kafka, but that should only be one background task.

    Is there some way I can have multiple Gunicorn workers, but only have one launch a background worker?

    Continue reading...

Compartilhe esta Página