Skip to content

Commit

Permalink
Distinguish if multiple nodes are offline
Browse files Browse the repository at this point in the history
  • Loading branch information
aandvalenzuela committed Aug 9, 2023
1 parent 9289faf commit b989469
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parse_jenkins_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def process_queue_reason(labels):
elif "Waiting for next available executor on" in labels:
node = labels.split(" on ")[1].decode('utf8').encode('ascii', errors='ignore')
reason = str(node) + "-busy"
elif "is offline;" in labels:
reason = "multiple-offline"
elif "is offline" in labels:
node = labels.split(" is ")[0].decode('utf8').encode('ascii', errors='ignore')
reason = str(node) + "-offline"
Expand Down

0 comments on commit b989469

Please sign in to comment.