We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4009fe8 + 4b0024e commit 65a00ceCopy full SHA for 65a00ce
cylc/flow/task_pool.py
@@ -442,12 +442,11 @@ def compute_runahead(self, force=False) -> bool:
442
self._prev_runahead_sequence_points = sequence_points
443
self._prev_runahead_base_point = base_point
444
445
- if count_cycles:
446
- if not sequence_points:
447
- limit_point = base_point
448
- else:
449
- # (len(list) may be less than ilimit due to sequence end)
450
- limit_point = sorted(sequence_points)[:ilimit + 1][-1]
+ if not sequence_points:
+ limit_point = base_point
+ elif count_cycles:
+ # (len(list) may be less than ilimit due to sequence end)
+ limit_point = sorted(sequence_points)[:ilimit + 1][-1]
451
else:
452
limit_point = max(sequence_points)
453
0 commit comments