The cleanup can be scheduled using you method of choice. It could be a cron job, and scheduled background task in Python, a task scheduled by Windows scheduler. The best choice depends on you infrastructure setup.
Sorry, can I clarify what does a cleanup entail? Deleting the files cached in the file system? How would something like that work when deployed to something like Heroku? I apologize for these questions as Iām pretty new to the idea of caching. Thanks!
If you are using a file system store, then yes it would be deleting files. On Heroku, the file system is ephemeral, so I am not sure if manual cleaning is needed at all.
Hello everyone, iām starting in dash and i fin usefull this dcc store concept, but iām not pretty sure how to use in my codeā¦ now i set this compenent in a div into the layout and the first callback (the tradicional callback) set and save the data here so like 10 callbacks (taditional callbacks) take the data and process this information in order to make graphs etcā¦ but reading this article i guess that here i can find a better way in order to make faster the app executionā¦ @Emil can you share a code, like at the beggining, explaining the method? i couldnāt find it in your git hub repo.
Are there any gotchas for working with multi-page apps on Heroku?
Everything is working fine locally, but the
Input("DF_GLOBAL2", "data"),
on my Heroku instance returns None. Iāve got a folder, file_system_store, on my app, and, again, it works fine locally. Iām printing when I save it initially, and the dataframe prints correctly on the server;
Itās on gunicorn, 4 workers, and Iām just using the default file store. I hope that answers all the questions. Sorry Iām very weak on server side details
There are a few possible issues. It looks like you might be using global variables? That can generally be a problem, so I would recommend to avoid it. Furthermore, disk caching on heroku can be problematic as the filesystem is local to the dyno (and ephemeral). If you only have a single dyno, the latter shouldnāt be an issue though.