I have trouble setting up a Apscheduler which interacts with the session variable. I always get the error RuntimeError: Working outside of request context.
RuntimeError: Working outside of request context.