import threading

@app.route('/long-task')
def long_task():
	threading.Thread(target=do_long_task).start()
	return "Task started"