'One time Python script on Heroku

I would like to run a python script on Heroku, but I would like to run it only once and stop at the end of the script Right now my script is running endlessly, so at the end of it, it restarts from the beginning.

How can I stop it at the end of the script ?

right now my procfile look the following;

web: python ValueAppScript.py
worker: python ValueAppScript.py

thx you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source