diff --git a/taskflow/persistence/backends/base.py b/taskflow/persistence/backends/base.py index 1f76aeab..cdd8e710 100644 --- a/taskflow/persistence/backends/base.py +++ b/taskflow/persistence/backends/base.py @@ -68,6 +68,14 @@ class Connection(object): """Clear all entries from this backend.""" pass + @abc.abstractmethod + def validate(self): + """Validates that a backend is still ok to be used (the semantics + of this vary depending on the backend). On failure a backend specific + exception is raised that will indicate why the failure occurred. + """ + pass + @abc.abstractmethod def update_task_details(self, task_detail): """Updates a given task details and returns the updated version.