aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'jobs')
-rwxr-xr-xjobs/JobSpawner.py4
-rwxr-xr-xjobs/PeerChecker.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/jobs/JobSpawner.py b/jobs/JobSpawner.py
index 50f3043..0765339 100755
--- a/jobs/JobSpawner.py
+++ b/jobs/JobSpawner.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
class JobSpawner:
- """OVERRIDE ME
- Returns an array (or using 'yield') of Job objects to run"""
+ """OVERRIDE ME
+ Returns an array (or using 'yield') of Job objects to run"""
def get_sub_jobs(self, config):
pass
diff --git a/jobs/PeerChecker.py b/jobs/PeerChecker.py
index 8211472..12ce8d8 100755
--- a/jobs/PeerChecker.py
+++ b/jobs/PeerChecker.py
@@ -8,6 +8,7 @@ import imaplib
import requests
import JobBase
+import JobSpawner
class PeerChecker(JobSpawner.JobSpawner):
class IndividualPeerChecker(JobBase.JobBase):
@@ -51,8 +52,7 @@ class PeerChecker(JobSpawner.JobSpawner):
self.subject = self.checkurl + " is not responding."
self.body = str(e)
return peerOK
-
- return peerOK:
+
def onFailure(self):
return self.sendEmail(self.subject, self.body, self.notificationAddress)
def onStateChangeSuccess(self):