Run multiple processes in single app with Procfile

Reading through this tutorial here: Run a Python App · Fly Docs

It demonstrates how a python app can be ran with a single Procfile:

# Modify this Procfile to fit your needs
web: gunicorn app:app

My app requires an additional celery process to run periodic tasks:

web: gunicorn app:app
celery: celery -A tasks worker --loglevel=INFO -B

When I deploy this to fly.io only the web process appears to start successfully, the celery process is never ran.

It’s unclear from the documentation whether multiple processes are supported here, or will I have to go down the route described here: Running Multiple Processes Inside A Fly.io App · Fly Docs and use a Procfile manager like overmind (which is what I use for local dev anyway).

Thans, Jack

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.