aboutsummaryrefslogtreecommitdiff
path: root/jobmanager.py
diff options
context:
space:
mode:
Diffstat (limited to 'jobmanager.py')
-rwxr-xr-xjobmanager.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/jobmanager.py b/jobmanager.py
index 74327a7..63ae16b 100755
--- a/jobmanager.py
+++ b/jobmanager.py
@@ -28,8 +28,16 @@ class JobManager:
def mark_jobs_ran(self):
logging.debug("Marking jobs as run successfully.")
- requests.post("http://localhost:5001/", data="True")
+ try:
+ requests.post("http://localhost:5001/", data="True")
+ except:
+ pass
+ #Nothing we can do except hope our peers save us
def mark_jobs_ran_with_error(self):
logging.warning("Marking jobs as run unsuccessfully.")
- requests.post("http://localhost:5001/", data="False") \ No newline at end of file
+ try:
+ requests.post("http://localhost:5001/", data="False")
+ except:
+ pass
+ #Nothing we can do except hope our peers save us