Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
savingoyal committed Feb 11, 2025
1 parent 8af29af commit e8afdc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metaflow/plugins/metadata_providers/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def __init__(self, environment, flow, event_logger, monitor):
def compute_info(cls, val):
v = val.rstrip("/")
try:
resp = requests.get(os.path.join(v, "ping"), headers=SERVICE_HEADERS.copy())
resp = cls._session.get(
os.path.join(v, "ping"), headers=SERVICE_HEADERS.copy()
)
resp.raise_for_status()
except: # noqa E722
raise ValueError("Metaflow service [%s] unreachable." % v)
Expand Down

0 comments on commit e8afdc3

Please sign in to comment.