mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #6996 from bernt-matthias/topic/reclaim_failed
reclaim ownership for failed jobs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -213,3 +213,6 @@ class MockJobWrapper(object):
|
||||
|
||||
def home_directory(self):
|
||||
return None
|
||||
|
||||
def reclaim_ownership(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user