A hello world example like mine would be to define a model in models.py:
The most likely cause for this is that you tried to use
flask-sqlalchemy without an application context (e.g. in a
scheduled function). I suggest you use regular SQLAlchemy in
scheduled tasks.
--
You received this message because you are subscribed to the Google Groups "APScheduler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apscheduler...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/apscheduler/4b9ce7d0-08bc-4e1c-95d3-378d7862fbc7n%40googlegroups.com.
The crucial difference is that it requires an application
context, which won't exist in a function scheduled with
APScheduler. That is the problem you are facing now.
To view this discussion on the web visit https://groups.google.com/d/msgid/apscheduler/4471ee8b-7476-47ed-af0c-1b88b532f455n%40googlegroups.com.