Merge pull request #6996 from bernt-matthias/topic/reclaim_failed

reclaim ownership for failed jobs
This commit is contained in:
John Chilton
2018-12-14 15:48:14 -05:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -423,6 +423,7 @@ class BaseJobRunner(object):
def fail_job(self, job_state, exception=False):
if getattr(job_state, 'stop_job', True):
self.stop_job(job_state.job_wrapper)
job_state.job_wrapper.reclaim_ownership()
self._handle_runner_state('failure', job_state)
# Not convinced this is the best way to indicate this state, but
# something necessary
+3
View File
@@ -213,3 +213,6 @@ class MockJobWrapper(object):
def home_directory(self):
return None
def reclaim_ownership(self):
pass