mljar / mercury

Convert Jupyter Notebooks to Web Apps
https://RunMercury.com
GNU Affero General Public License v3.0
3.94k stars 252 forks source link

Outdated Media files not cleared out #297

Open kuanmy opened 1 year ago

kuanmy commented 1 year ago

Hi! I face an issue where some outdated media files aren't being deleted, which can lead to more and more space being consumed as the app runs:

1) Files in uploads-temp folder

Is there any way to automatically clear these outdated files as the app runs? I do notice that the app seems to be doing a great job in automatically deleting the output files in media/ folder as a session becomes inactive.

pplonski commented 1 year ago

Hi @kuanmy!

Thank you for reporting the issue. I will do my best to have this fixed in the next week.

Are you happy with the framework? Do you get nice web app with mercury? I'd love to learn more about your use case.

kuanmy commented 1 year ago

Hi @pplonski ! Yes, the framework suits my purpose very well, and the bugs I am concerned with so far are also addressed, thanks for the quick response!

For my use case, I have a ipynb file that allows user to upload files, user can interact with the data uploaded (e.g. view & filter), then download the result files. Initially, I put the code on google colab and uses ipywidget for the widgets, but the interface surely isn't user-friendly. As I have no experience in designing or hosting Python websites, I searched for some framework that can easily turn ipynb file into a website and allow interactive widgets, which is where I came across mercury.

Overall, I am quite satisfied with how mercury helps segregate the handling for widgets, website frontend and backend, and also provides several ways to deploy to the server. After changing to use mercury framework, I get to simplify my code a lot without having to deal with the widget listeners and layout, and the areas that I am not familiar with are also well covered by mercury 👍 .

pplonski commented 1 year ago

Great! I'm very happy that you found it useful. I'm currently working on update of RunMercury.com website. May I use the below sentence as testimonial:

After changing to use mercury framework, I get to simplify my code a lot without having to deal with the widget listeners and layout

May I ask for your name, job title and company name? If you would like to stay anonymous, it's ok, I will use your GitHub username. Thank you!

kuanmy commented 1 year ago

Sure 👌 you can use my Github username, thanks!

codinggeeks06 commented 9 months ago

hey, did this get resolved? I am still getting issue in this. How to clear outdated media files?

pplonski commented 9 months ago

It might still be the issue. You can create some script to clear outdated media files.