Why running time takes longer and longer after server running 2-3 days

I can not find where is the bug,
when i print the whole programe running time by:
it seems never change, keep at 0.016s.
But after server running about 2-3 days, it takes longer when i do any action, click button or others…
One possible problem maybe i use joblib to make some function faster, and it is not
correctly closed…
Another maybe i use shutil.copy and streamlit download button to download many files, but i don’t know how to fix it …

Anyone know how to figure it out?

Hi there,

Thanks for sharing your question with the community! Check out our guidelines on how to post an effective question here.

Please share a code snippet and the link to your deployed app so we can try to make suggestions