mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
In fixing the incorrect behavior of what was previously in the handler
shutdown method, I made the same mistake in a slightly different way.
This commit is contained in:
@@ -965,12 +965,12 @@ class DefaultJobDispatcher(object):
|
||||
job_wrapper.fail(DEFAULT_JOB_PUT_FAILURE_MESSAGE)
|
||||
|
||||
def shutdown(self):
|
||||
failures = []
|
||||
for name, runner in self.job_runners.items():
|
||||
failures = []
|
||||
try:
|
||||
runner.shutdown()
|
||||
except Exception:
|
||||
failures.append(name)
|
||||
log.exception("Failed to shutdown runner %s", name)
|
||||
if failures:
|
||||
raise Exception("Failed to shutdown runners: %s" % ', '.join(failures))
|
||||
if failures:
|
||||
raise Exception("Failed to shutdown runners: %s" % ', '.join(failures))
|
||||
|
||||
Reference in New Issue
Block a user