V
V
Vyacheslav2020-01-31 16:57:09
Python
Vyacheslav, 2020-01-31 16:57:09

How to run a script on Heroku with and without scheduled arguments?

My Heroku script runs through a scheduler that I set up using the Python library . The scheduler is started using the command line argument; without it, the script is launched only once. It is clear that I can register one launch option in Procfile . I need to make sure that the user can pass an argument --urlto the script for a one-time launch. Thus, the task consists of two things: 1) how to pass arguments at startup heroku runin order to control the addition to the scheduler or a one-time launch with the start one url2) how to stop the script from the console, which is run by the command after launching the commandheroku runwas added to the scheduler (before that I stopped through the web interface, I want to add the breadth of use cli)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question