Resolve "TTL and key eviction of scan data"
Closes #2860 (closed) Part of #2848 (closed)
All existing TTL setting for db=1
has been removed and replaced with this logic:
- TTL of scan nodes (including children) is set to 5 minutes at the end of the scan (normal finish or CTRL-C). For the basic data policy, the parents are included as well.
- TTL of dataset nodes (including children) is set to 5 minutes when a dataset is closed
- TTL of proposal nodes (including children and parents) is set to 5 minutes when switching to a new proposal
- TTL of proposal nodes (including parents) is unset when switching to a new proposal
There is currently no distinction between a closed dataset (no more data will be added) and a confirmed dataset (received by ICAT). This will come in another MR.
Edited by Wout De Nolf