Hello Streamlit community!
I’m using apscheduler’s BackgroundScheduler
in my Streamlit app to query a database twice a day, then I use streamlit.cache()
to cache the data.
I’m seeing multiple missing ReportContext
warnings in my logs. I’d like to implement the fix described here: How to run a subprocess programs using thread inside streamlit?
However, the issue is that I’m not explicitly creating threads; BackgroundScheduler
runs a thread for each job and it’s not immediately obvious how to attach a ReportContext to that job thread (which is somewhere inside of apscheduler
).
Any ideas on how to fix this?
Thanks in advance.