How to run a background task in Heroku?
问题 I have already build a a python app and deployed it using Flask and Python . Here is my Skelton of my code. #app.py @app.route('/', methods=['GET']) def login(): '''login process''' @app.route('/reset-password', methods=['GET']) def reset_password(): '''reset password process''' @app.route('/add-psa', methods=['GET']) def add_user(): '''add user process''' if __name__ == '__main__': app.debug = True app.run(use_reloader=False, threaded=True) Deployed app work fine in the Heroku. But sometime