CASCache cleanup improvements
This branch fixes two aspects:
-
Currently when deleting refs, we leave the intermediate directories around in the CAS
refs/heads
directory, which is messy and costly whenever listing the refs directories. -
Currently we don't handle
SIGTERM
correctly, use the utilities to ensure temporary assets are properly garbage collected when the process is forcefully terminated.
Edited by Tristan Van Berkom