]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add SkipJob
authorZack Cerza <zack@redhat.com>
Thu, 19 May 2016 16:22:23 +0000 (10:22 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 24 May 2016 15:34:00 +0000 (09:34 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/exceptions.py

index 1d18a28608ce1057f70ec77eeec8f95e3e0682ed..c12700d92fe295d4a6540c9291d9695687351e51 100644 (file)
@@ -139,9 +139,18 @@ class SELinuxError(Exception):
         return "SELinux denials found on {node}: {denials}".format(
             node=self.node, denials=self.denials)
 
+
 class QuotaExceededError(Exception):
     def __init__(self, message):
         self.message = message
 
     def __str__(self):
         return self.message
+
+
+class SkipJob(Exception):
+    """
+    Used by teuthology.worker when it notices that a job is broken and should
+    be skipped.
+    """
+    pass