I run the following command twice to start my two one-off dynos
heroku run:detached python main.py
and then stop it using
heroku ps:stop <dyno-name>
however, I wish to stop all my dynos without knowing dyno names before hand, since I am trying to automate turning on and off my dynos using crontab.
I wrote a python script to achieve the same, not that optimised but does the job.
Note:
run
likerun.1234