I have a Python Flask app on Heroku that serves web pages but also allows certain tasks to be launched which I believe would be best structured as background tasks. As such
To start and run a process in background:
Procfile:
run: python my_app.py
And later, execute:
heroku ps:scale run=1