Skip to content

Commit

Permalink
Merge pull request #43 from ServiceNow/patch-unhealthy-instances
Browse files Browse the repository at this point in the history
  • Loading branch information
aldro61 authored Oct 25, 2024
2 parents b253968 + e601939 commit c529f75
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions src/browsergym/workarena/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,34 @@ def check_instance_release_support():
f"You are running {version_info['build name']} {version_info}."
)
return False

# XXX: This piece of code is included temporarily while a data center problem
# is being fixed. It will be removed once the problem is fixed. It serves
# to raise an error if the instance is part of a pool of unhealthy instances.
if "ord191" in version_info["connected to cluster node"]:
logging.error(
"""
_.-^^---....,,--
_-- --_
< >)
| |
\._ _./
```--. . , ; .--'''
| | |
.-=|| | |=-.
`-=#$%&%$#=-'
| ; :|
_____.,-#%&$@%#&#~,._____
Oops, it looks like you were assigned an unhealthy ServiceNow instance.
Our data center team is hard at work trying to solve this issue. Meanwhile,
the best course of action is to release your current instance and request
a new one at https://developer.servicenow.com. Unfortunately, you might
have to repeat this process a few times. We apologize for the inconvenience.
"""
)
return False

return True


Expand Down
2 changes: 1 addition & 1 deletion src/browsergym/workarena/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def release_version(self) -> str:
# XXX: Need to include the import here to avoid circular imports
from .utils import ui_login

keys = ["build name", "build date", "build tag"]
keys = ["build name", "build date", "build tag", "connected to cluster node"]

# We need to use playwright since the page is loaded dynamically
# and its source doesn't contain the information we need
Expand Down

0 comments on commit c529f75

Please sign in to comment.