Feature #14930
Updated by Lucas Di Pentima over 5 years ago
The use case would be for when sequencers finish uploading to arvados, we can set the timer to delete that data after some designated time period. Trash/delete times could be specified in 2 ways: 1. Absolute datetime: Could be accepted from a param like @--trash_at "YYYY-MM-DD HH:MM"@ YYYY-MM-DD HH:MM@ 2. Relative times: Could be accepted from a param like @--trash_after XXh@ TT@ Both parameters would be mutually exclusive * For absolute datetimes we can use @python-dateutil@’s parser (https://dateutil.readthedocs.io/en/stable/examples.html#parse-examples) * For relative times didn’t find any parser but I think it would be simple enough to parse strings like “7[d|days]”, “1[w|week|weeks], etc.” “1[w|week|weeks]” and use dateutil's @relativedelta@ feature to get the absolute datetime: https://dateutil.readthedocs.io/en/stable/relativedelta.html The relative times should take not of the upload finish process datetime. When resuming a pre-existing collections, update the trash_at/delete_at fields?