What’s the right approach for calling functions after a flask app is run?
Probably you were looking for Flask.before_first_request decorator, as in: @app.before_first_request def _run_on_start(a_string): print “doing something important with %s” % a_string