Skip to content

Commit

Permalink
Fix gui job logs viewer submit num count
Browse files Browse the repository at this point in the history
Reset submit number correctly on `trigger --edit` back out.
  • Loading branch information
matthewrmshin committed Oct 16, 2018
1 parent 9cc0d3e commit 17fb736
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cylc/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,12 @@ def trigger_tasks(self, items, back_out=False):
for itask in itasks:
if back_out:
# (Aborted edit-run, reset for next trigger attempt).
try:
del itask.summary['job_hosts'][itask.submit_num]
except KeyError:
pass
itask.submit_num -= 1
itask.summary['submit_num'] = itask.submit_num
itask.local_job_file_path = None
continue
if itask.state.status in TASK_STATUSES_ACTIVE:
Expand Down

0 comments on commit 17fb736

Please sign in to comment.