From 5bed8cb7a9362d1c0549f51b6532d969c1e0d0ff Mon Sep 17 00:00:00 2001 From: Josh Borrow Date: Thu, 14 Nov 2024 13:13:23 -0500 Subject: [PATCH] Core setup --- librarian_background/rolling_deletion.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 librarian_background/rolling_deletion.py diff --git a/librarian_background/rolling_deletion.py b/librarian_background/rolling_deletion.py new file mode 100644 index 0000000..bd8a964 --- /dev/null +++ b/librarian_background/rolling_deletion.py @@ -0,0 +1,18 @@ +""" +A (very) dangerous task that you may have to use. This task will delete files that +are older than a certain age, subject to some (optional) constraints: + +a) The file must have $N$ remote instances available throughout the network +b) The checksums of those files must match the original checksum +""" + +from .task import Task + + +class RollingDeletion(Task): + """ + A background task that deletes _instances_ (not files!) that are older than + a certain age. + """ + + pass