wtsi-hgi / hgi-vault

Data retention policy tools
GNU General Public License v3.0
1 stars 0 forks source link

Separating Deleting and Archiving in Sandman #39

Closed michael-grace closed 2 years ago

michael-grace commented 2 years ago

sandman now has another flag:

sandman - runs as dry run sandman --weaponise - will delete expired files, but not touch any archive jobs sandman --archive - will deal with all the archiving it needs to do, but not delete anything (except deleting stuff related to the archival) sandman --weaponise --archive - will do both (equivalent to current --weaponise)

codecov[bot] commented 2 years ago

Codecov Report

Merging #39 (d73213d) into master (8accf70) will increase coverage by 0.04%. The diff coverage is 91.11%.

@@            Coverage Diff             @@
##           master      #39      +/-   ##
==========================================
+ Coverage   91.58%   91.62%   +0.04%     
==========================================
  Files          35       35              
  Lines        2092     2102      +10     
==========================================
+ Hits         1916     1926      +10     
  Misses        176      176              
Impacted Files Coverage Δ
bin/sandman/usage.py 66.66% <33.33%> (+1.66%) :arrow_up:
bin/sandman/sweep.py 92.70% <95.12%> (+0.35%) :arrow_up:
bin/common.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8accf70...d73213d. Read the comment docs.

sb10 commented 2 years ago

Add --archive option to sandman