T
T
timur1022019-01-28 18:09:58
Python
timur102, 2019-01-28 18:09:58

How can you "put to sleep" the application?

I have a similar script:

....
while 1:
    count = requests,post(url, data=data).json()['count']
    print('[i] Count: {0}".format(count))
    time.sleep(60*60) # 1 hour

On heroku, the program is unstable. She sometimes may not show this value.
What to do?

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