Commit 914a6a13 authored by Cage, Gregory's avatar Cage, Gregory
Browse files

Persist data stores by default

parent 45e199ea
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class Datastore:
        self.name = name
        self.nova_connection = nova_connection
        self.history_id = history_id
        self.persist_store = False
        self.persist_store = True

    def persist(self) -> None:
        """Persist this store even after the nova connection is closed.
@@ -28,6 +28,10 @@ class Datastore:
        """
        self.persist_store = True

    def mark_for_cleanup(self) -> None:
        """Clean up and delete all content related to this Data Store after the associated connection is closed."""
        self.persist_store = False

    def recover_tools(self, filter_running: bool = True) -> List[Tool]:
        """Recovers all running tools in this data_store.