Gunicorn throws error from old code - how to reset gunicorn cache?

I have setup Gunicorn + Flask in an Ubuntu EC2. Inside my flask app (app.py) I have initialized user input outside of the app.route("/") function as follows :

USER_INPUT = request.args.get('USER_INPUT')

This initialization was throwing "RuntimeError: Working outside of request context". I have dropped it, setting up manually the user_input with dummy values. After git pulled the new code and restarted gunicorn service, it still throws the exact same error.

I am new to this infrastructure, but I assume it has to do with some gunicorn cache. Any ideas?