Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[storage] Set up automatic deletion of old media #117

Open
frgfm opened this issue Mar 15, 2021 · 5 comments
Open

[storage] Set up automatic deletion of old media #117

frgfm opened this issue Mar 15, 2021 · 5 comments
Milestone

Comments

@frgfm
Copy link
Member

frgfm commented Mar 15, 2021

For now, the media that are uploaded to the bucket are stored indefinitely. But in the long-term, we need to erase those to avoid filling up the disk.

If that's alright with everyone, I suggest setting a MEDIA_PERSISTENCY value in the config (default 30-60days).

What do you think?
cc @jeanpasquier75 @florianriche @fe51

@frgfm frgfm added this to the 0.1.2 milestone Mar 15, 2021
@frgfm frgfm added the help wanted Extra attention is needed label Mar 15, 2021
@fe51
Copy link
Member

fe51 commented Mar 18, 2021

Hi there,

This is indeed a good idea ! Moreover, with regard to the CNIL, it is important to define a storage period for our images.

Concretely, how do you want to implement it ?Is the concept to set up a CRON on a backend script deleting old media ?

About the storage period, is 30 days enough time to potentially do training sessions on vision side ?

@frgfm
Copy link
Member Author

frgfm commented Mar 18, 2021

Good question, I'm not sure how we could do this 🤷‍♂️

We'll let the vision team know, but let's work with the maximum legal duration allowed to give them the best flexibility 👍

@frgfm frgfm modified the milestones: 0.1.2, 0.1.3 Mar 18, 2021
@frgfm
Copy link
Member Author

frgfm commented Mar 18, 2021

FYI, moving this to a later release, since the problem won't be critical before our first live alerts

@florianriche
Copy link
Contributor

florianriche commented Apr 19, 2021

FYI found a service that could help us do that https://posthook.io/
(found here https://free-for.dev/, sharing because it's nice)

@frgfm
Copy link
Member Author

frgfm commented Jun 16, 2022

Wrapping my way around this, apart from our current process of doing it manually, the only viable way we could do this is with a cron job :)

Not a priority since we have limited traffic, I'll move this to a later release

@frgfm frgfm modified the milestones: 0.1.3, 1.0.0 Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants