Skip to content

Commit

Permalink
Clarify _complete_terminal_job() return value
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo committed May 25, 2016
1 parent 69879af commit ca12c37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/jobs/runners/drmaa.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def _complete_terminal_job( self, ajs, drmaa_state, **kwargs ):
Handle a job upon its termination in the DRM. This method is meant to
be overridden by subclasses to improve post-mortem and reporting of
failures.
Returns True if job was not actually terminal, None otherwise.
"""
if drmaa_state == drmaa.JobState.FAILED:
if ajs.job_wrapper.get_state() != model.Job.states.DELETED:
Expand Down

0 comments on commit ca12c37

Please sign in to comment.