suppose I am running a worker dyno
with following python code in heroku
import time
time.sleep(60*60)
exit()
I want to stop the worker completely, this code ends the program, but it starts again having the same effect as heroku ps:restart worker
what should I write in the code to have the same effect as heroku ps:scale worker=0
, is this possible ? If not what are my alternatives ?