lundi 11 septembre 2017

Python flask post method overflow

i = 0
@app.route('/', methods=['POST'])
def function():
    entry = {    
          'Person': i,       
            }
    db.textbot.insert_one(entry)
    i = i + 1
    # Labour intensive function that lasts 2 seconds in execution time. 

If I have a script that loads the URL and calls this function every second will the program crash?

Aucun commentaire:

Enregistrer un commentaire