Skip to content

Commit b4b14da

Browse files
authored
Do not wait for retrigger if suites are complete (#247)
* Handle case where all suites have completed * Run ruff
1 parent 77a5166 commit b4b14da

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

nightly_testing/retrigger_nightlies.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ def check_failed_suites(valid_suites, cylc_run):
179179
# Parse the valid_suites for ones which are cylc8 and have failed tasks
180180
failed_suites = check_failed_suites(valid_suites, cylc_run)
181181

182+
if not failed_suites:
183+
print("No failed suites found")
184+
raise SystemExit(0)
185+
182186
print("\nFound the following suites with errors:")
183187
for suite in failed_suites:
184188
print(f" * {suite}")

0 commit comments

Comments
 (0)