kbase / dts

A data transfer service
https://kbase.github.io/dts/
MIT License
0 stars 0 forks source link

Implement persistent store for requested and completed transfers #35

Closed jeff-cohere closed 7 months ago

jeff-cohere commented 8 months ago

Because the DTS monitors a lot of long-running activities (files staging, transfers), it's important that we be able to stop and restart it without losing this information. We can support this feature by having the DTS maintain a persistent store of ongoing transfers instead of storing them in a map in memory.

While we're at it, we should probably keep records of completed transfers around for a configurable period of time so that users can query the DTS for information about these transfers. This means we should store the date/time at which each transfer completes, and set up a task that periodically scrubs information about transfers whose "age" (current time - transfer completion date) exceeds this configurable time period.

These changes require a couple of additional service parameters in the YAML config file: