Skip to content

Commit

Permalink
Apply Nicola's suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 14, 2023
1 parent 6f1b60a commit 6cde33f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1635,9 +1635,9 @@ def all_entry_points_configured(self):
all_configured = ep.configured and all_configured
return all_configured

def set_state(self, state):
def set_state(self, state: JobState) -> bool:
"""
Save state history. Returns True if stat has changed, else False
Save state history. Returns True if state has changed, else False.
"""
if self.state == state:
# Nothing changed, no action needed
Expand Down
2 changes: 1 addition & 1 deletion lib/galaxy/workflow/scheduling_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def __attempt_schedule(self, invocation_id, workflow_scheduler):
try:
if workflow_invocation.state == workflow_invocation.states.CANCELLING:
workflow_invocation.cancel_invocation_steps()
workflow_invocation.state = workflow_invocation.states.CANCELLED
workflow_invocation.mark_cancelled()
session.commit()
return False

Expand Down

0 comments on commit 6cde33f

Please sign in to comment.