ob-metaflow-extensions 1.1.72__py2.py3-none-any.whl → 1.1.73__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ob-metaflow-extensions might be problematic. Click here for more details.
- metaflow_extensions/outerbounds/plugins/auth_server.py +9 -2
- metaflow_extensions/outerbounds/plugins/nim/nim_manager.py +12 -4
- {ob_metaflow_extensions-1.1.72.dist-info → ob_metaflow_extensions-1.1.73.dist-info}/METADATA +1 -1
- {ob_metaflow_extensions-1.1.72.dist-info → ob_metaflow_extensions-1.1.73.dist-info}/RECORD +6 -6
- {ob_metaflow_extensions-1.1.72.dist-info → ob_metaflow_extensions-1.1.73.dist-info}/WHEEL +0 -0
- {ob_metaflow_extensions-1.1.72.dist-info → ob_metaflow_extensions-1.1.73.dist-info}/top_level.txt +0 -0
|
@@ -52,10 +52,17 @@ def get_token(url_path):
|
|
|
52
52
|
return token_info
|
|
53
53
|
except requests.exceptions.HTTPError as e:
|
|
54
54
|
raise MetaflowException(repr(e))
|
|
55
|
-
except
|
|
55
|
+
except (
|
|
56
|
+
requests.exceptions.ConnectionError,
|
|
57
|
+
requests.exceptions.ReadTimeout,
|
|
58
|
+
) as e:
|
|
56
59
|
# ConnectionErrors are generally temporary errors like DNS resolution failures,
|
|
57
60
|
# timeouts etc.
|
|
58
|
-
print(
|
|
61
|
+
print(
|
|
62
|
+
"received error of type {}. Retrying...".format(type(e)),
|
|
63
|
+
e,
|
|
64
|
+
file=sys.stderr,
|
|
65
|
+
)
|
|
59
66
|
time.sleep(retry_delay)
|
|
60
67
|
retry_delay *= 2 # Double the delay for the next attempt
|
|
61
68
|
retry_delay += random.uniform(0, 1) # Add jitter
|
|
@@ -174,11 +174,16 @@ class NimChatCompletion(object):
|
|
|
174
174
|
self.invocations.append(invocation_id)
|
|
175
175
|
elif response.status_code == 200:
|
|
176
176
|
return response.json()
|
|
177
|
-
except
|
|
177
|
+
except (
|
|
178
|
+
requests.exceptions.ConnectionError,
|
|
179
|
+
requests.exceptions.ReadTimeout,
|
|
180
|
+
) as e:
|
|
178
181
|
# ConnectionErrors are generally temporary errors like DNS resolution failures,
|
|
179
182
|
# timeouts etc.
|
|
180
183
|
print(
|
|
181
|
-
"
|
|
184
|
+
"received error of type {}. Retrying...".format(type(e)),
|
|
185
|
+
e,
|
|
186
|
+
file=sys.stderr,
|
|
182
187
|
)
|
|
183
188
|
time.sleep(retry_delay)
|
|
184
189
|
retry_delay *= 2 # Double the delay for the next attempt
|
|
@@ -205,11 +210,14 @@ class NimChatCompletion(object):
|
|
|
205
210
|
raise Exception(
|
|
206
211
|
f"NVCF returned {poll_response.status_code} status code. Please contact Outerbounds."
|
|
207
212
|
)
|
|
208
|
-
except
|
|
213
|
+
except (
|
|
214
|
+
requests.exceptions.ConnectionError,
|
|
215
|
+
requests.exceptions.ReadTimeout,
|
|
216
|
+
) as e:
|
|
209
217
|
# ConnectionErrors are generally temporary errors like DNS resolution failures,
|
|
210
218
|
# timeouts etc.
|
|
211
219
|
print(
|
|
212
|
-
"
|
|
220
|
+
"received error of type {}. Retrying...".format(type(e)),
|
|
213
221
|
e,
|
|
214
222
|
file=sys.stderr,
|
|
215
223
|
)
|
|
@@ -2,12 +2,12 @@ metaflow_extensions/outerbounds/__init__.py,sha256=TRGvIUMjkfneWtYUFSWoubu_Kf2ek
|
|
|
2
2
|
metaflow_extensions/outerbounds/remote_config.py,sha256=Zpfpjgz68_ZgxlXezjzlsDLo4840rkWuZgwDB_5H57U,4059
|
|
3
3
|
metaflow_extensions/outerbounds/config/__init__.py,sha256=mYo95obHU1IE1wbPkeVz_pfTzNqlNabp1QBEMTGllbE,112
|
|
4
4
|
metaflow_extensions/outerbounds/plugins/__init__.py,sha256=46NgbJBhVowDR6FyQrZPF2jHHqRTSyCBCYIQAyQ4Ryo,9516
|
|
5
|
-
metaflow_extensions/outerbounds/plugins/auth_server.py,sha256=
|
|
5
|
+
metaflow_extensions/outerbounds/plugins/auth_server.py,sha256=1v2GBqoMBxp5E7Lejz139w-jxJtPnLDvvHXP0HhEIHI,2361
|
|
6
6
|
metaflow_extensions/outerbounds/plugins/perimeters.py,sha256=QXh3SFP7GQbS-RAIxUOPbhPzQ7KDFVxZkTdKqFKgXjI,2697
|
|
7
7
|
metaflow_extensions/outerbounds/plugins/kubernetes/__init__.py,sha256=5zG8gShSj8m7rgF4xgWBZFuY3GDP5n1T0ktjRpGJLHA,69
|
|
8
8
|
metaflow_extensions/outerbounds/plugins/kubernetes/kubernetes_client.py,sha256=gj6Iaz26bGbZm3aQuNS18Mqh_80iJp5PgFwFSlJRcn8,1968
|
|
9
9
|
metaflow_extensions/outerbounds/plugins/nim/__init__.py,sha256=GVnvSTjqYVj5oG2yh8KJFt7iZ33cEadDD5HbdmC9hJ0,1457
|
|
10
|
-
metaflow_extensions/outerbounds/plugins/nim/nim_manager.py,sha256=
|
|
10
|
+
metaflow_extensions/outerbounds/plugins/nim/nim_manager.py,sha256=SWieODDxtIaeZwdMYtObDi57Kjyfw2DUuE6pJtU750w,9206
|
|
11
11
|
metaflow_extensions/outerbounds/plugins/nvcf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
metaflow_extensions/outerbounds/plugins/nvcf/nvcf.py,sha256=ftxC5SCo64P5Ycpv5vudluTnQi3-VCZW0umdsPP326A,7926
|
|
13
13
|
metaflow_extensions/outerbounds/plugins/nvcf/nvcf_cli.py,sha256=ow3lonclEDoZEUQCDV_L8lEr6HopXqjNXzubRrfdIm4,7219
|
|
@@ -19,7 +19,7 @@ metaflow_extensions/outerbounds/toplevel/global_aliases_for_metaflow_package.py,
|
|
|
19
19
|
metaflow_extensions/outerbounds/toplevel/plugins/azure/__init__.py,sha256=WUuhz2YQfI4fz7nIcipwwWq781eaoHEk7n4GAn1npDg,63
|
|
20
20
|
metaflow_extensions/outerbounds/toplevel/plugins/gcp/__init__.py,sha256=BbZiaH3uILlEZ6ntBLKeNyqn3If8nIXZFq_Apd7Dhco,70
|
|
21
21
|
metaflow_extensions/outerbounds/toplevel/plugins/kubernetes/__init__.py,sha256=5zG8gShSj8m7rgF4xgWBZFuY3GDP5n1T0ktjRpGJLHA,69
|
|
22
|
-
ob_metaflow_extensions-1.1.
|
|
23
|
-
ob_metaflow_extensions-1.1.
|
|
24
|
-
ob_metaflow_extensions-1.1.
|
|
25
|
-
ob_metaflow_extensions-1.1.
|
|
22
|
+
ob_metaflow_extensions-1.1.73.dist-info/METADATA,sha256=d45Pkzj0dMiznAUc91auqJVpgAp7o7QD_R5DHIKqwgg,519
|
|
23
|
+
ob_metaflow_extensions-1.1.73.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
|
24
|
+
ob_metaflow_extensions-1.1.73.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
|
|
25
|
+
ob_metaflow_extensions-1.1.73.dist-info/RECORD,,
|
|
File without changes
|
{ob_metaflow_extensions-1.1.72.dist-info → ob_metaflow_extensions-1.1.73.dist-info}/top_level.txt
RENAMED
|
File without changes
|