Fix workers to not always be marked as unhealthy
This commit is contained in:
parent
6f804c222a
commit
1b7379df29
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ def matches_system_error(status_str):
|
|||
|
||||
for match in KNOWN_MATCHES:
|
||||
# 4 because we might have a Unix control code at the start.
|
||||
if status_str.find(match[0:len(match) + 4]) <= 4:
|
||||
found = status_str.find(match[0:len(match) + 4])
|
||||
if found >= 0 and found <= 4:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
Reference in a new issue