Deimos should automatically GC the state directory, ideally at a regular interval. One option would be for every command to spawn a subprocess that attempts to lock the state directory, performs the GC operation (deimos state --rm) for stale containers, and then holds the lock for up to 5-10 minutes (to prevent the operation from running to frequently).
Deimos should automatically GC the state directory, ideally at a regular interval. One option would be for every command to spawn a subprocess that attempts to lock the state directory, performs the GC operation (
deimos state --rm
) for stale containers, and then holds the lock for up to 5-10 minutes (to prevent the operation from running to frequently).