ob-metaflow-extensions 1.1.93__py2.py3-none-any.whl → 1.1.95__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/kubernetes/kubernetes_client.py +5 -1
- metaflow_extensions/outerbounds/plugins/nvcf/nvcf.py +8 -1
- metaflow_extensions/outerbounds/plugins/nvcf/nvcf_decorator.py +13 -3
- {ob_metaflow_extensions-1.1.93.dist-info → ob_metaflow_extensions-1.1.95.dist-info}/METADATA +2 -2
- {ob_metaflow_extensions-1.1.93.dist-info → ob_metaflow_extensions-1.1.95.dist-info}/RECORD +7 -7
- {ob_metaflow_extensions-1.1.93.dist-info → ob_metaflow_extensions-1.1.95.dist-info}/WHEEL +0 -0
- {ob_metaflow_extensions-1.1.93.dist-info → ob_metaflow_extensions-1.1.95.dist-info}/top_level.txt +0 -0
|
@@ -134,6 +134,7 @@ class KubernetesClient(object):
|
|
|
134
134
|
job_name = pod.metadata.labels.get("job-name", None)
|
|
135
135
|
if job_name is None:
|
|
136
136
|
raise Exception("Could not determine job name")
|
|
137
|
+
|
|
137
138
|
job_api.patch_namespaced_job(
|
|
138
139
|
name=job_name,
|
|
139
140
|
namespace=pod.metadata.namespace,
|
|
@@ -144,7 +145,10 @@ class KubernetesClient(object):
|
|
|
144
145
|
echo("failed to kill pod %s - %s" % (pod.metadata.name, str(e)))
|
|
145
146
|
|
|
146
147
|
with ThreadPoolExecutor() as executor:
|
|
147
|
-
executor.map(_kill_pod,
|
|
148
|
+
operated_pods = list(executor.map(_kill_pod, pods))
|
|
149
|
+
|
|
150
|
+
if not operated_pods:
|
|
151
|
+
echo("No active Kubernetes pods found for run *%s*" % run_id)
|
|
148
152
|
|
|
149
153
|
def job(self, **kwargs):
|
|
150
154
|
from metaflow.plugins.kubernetes.kubernetes_job import KubernetesJob
|
|
@@ -15,7 +15,6 @@ from metaflow.mflog import (
|
|
|
15
15
|
)
|
|
16
16
|
import requests
|
|
17
17
|
from metaflow.metaflow_config_funcs import init_config
|
|
18
|
-
from metaflow_extensions.outerbounds.plugins.nvcf.heartbeat_store import HeartbeatStore
|
|
19
18
|
|
|
20
19
|
|
|
21
20
|
class NvcfException(MetaflowException):
|
|
@@ -184,6 +183,14 @@ class Job(object):
|
|
|
184
183
|
(flow_name, str(run_id), step_name, str(task_id), str(retry_count))
|
|
185
184
|
)
|
|
186
185
|
|
|
186
|
+
## import is done here to avoid the following warning:
|
|
187
|
+
# RuntimeWarning: 'metaflow_extensions.outerbounds.plugins.nvcf.heartbeat_store' found in sys.modules
|
|
188
|
+
# after import of package 'metaflow_extensions.outerbounds.plugins.nvcf', but prior to execution of
|
|
189
|
+
# 'metaflow_extensions.outerbounds.plugins.nvcf.heartbeat_store'; this may result in unpredictable behaviour
|
|
190
|
+
from metaflow_extensions.outerbounds.plugins.nvcf.heartbeat_store import (
|
|
191
|
+
HeartbeatStore,
|
|
192
|
+
)
|
|
193
|
+
|
|
187
194
|
store = HeartbeatStore(
|
|
188
195
|
main_pid=None,
|
|
189
196
|
storage_backend=backend,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import sys
|
|
3
3
|
|
|
4
|
+
from metaflow.exception import MetaflowException
|
|
4
5
|
from metaflow.decorators import StepDecorator
|
|
5
6
|
from metaflow.metadata.util import sync_local_metadata_to_datastore
|
|
6
7
|
from metaflow.metaflow_config import DATASTORE_LOCAL_DIR
|
|
@@ -40,9 +41,18 @@ class NvcfDecorator(StepDecorator):
|
|
|
40
41
|
self.step = step
|
|
41
42
|
self.flow_datastore = flow_datastore
|
|
42
43
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
if any([deco.name == "kubernetes" for deco in decos]):
|
|
45
|
+
raise MetaflowException(
|
|
46
|
+
"Step *{step}* is marked for execution both on Kubernetes and "
|
|
47
|
+
"Nvidia. Please use one or the other.".format(step=step)
|
|
48
|
+
)
|
|
49
|
+
if any([deco.name == "parallel" for deco in decos]):
|
|
50
|
+
raise MetaflowException(
|
|
51
|
+
"Step *{step}* contains a @parallel decorator "
|
|
52
|
+
"with the @nvidia decorator. @parallel is not supported with @nvidia.".format(
|
|
53
|
+
step=step
|
|
54
|
+
)
|
|
55
|
+
)
|
|
46
56
|
|
|
47
57
|
# Set run time limit for the NVCF function.
|
|
48
58
|
self.run_time_limit = get_run_time_limit_for_task(decos)
|
{ob_metaflow_extensions-1.1.93.dist-info → ob_metaflow_extensions-1.1.95.dist-info}/METADATA
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ob-metaflow-extensions
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.95
|
|
4
4
|
Summary: Outerbounds Platform Extensions for Metaflow
|
|
5
5
|
Author: Outerbounds, Inc.
|
|
6
6
|
License: Commercial
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
Requires-Dist: boto3
|
|
9
9
|
Requires-Dist: kubernetes
|
|
10
|
-
Requires-Dist: ob-metaflow (==2.12.
|
|
10
|
+
Requires-Dist: ob-metaflow (==2.12.23.1)
|
|
11
11
|
|
|
12
12
|
# Outerbounds platform package
|
|
13
13
|
|
|
@@ -10,14 +10,14 @@ metaflow_extensions/outerbounds/plugins/fast_bakery/fast_bakery.py,sha256=MAPRQs
|
|
|
10
10
|
metaflow_extensions/outerbounds/plugins/fast_bakery/fast_bakery_cli.py,sha256=kqFyu2bJSnc9_9aYfBpz5xK6L6luWFZK_NMuh8f1eVk,1494
|
|
11
11
|
metaflow_extensions/outerbounds/plugins/fast_bakery/fast_bakery_decorator.py,sha256=EZDbyrfZ7fgcU-P9dMS_hpCxsdDeUE0K5VU3uNM4aW4,1506
|
|
12
12
|
metaflow_extensions/outerbounds/plugins/kubernetes/__init__.py,sha256=5zG8gShSj8m7rgF4xgWBZFuY3GDP5n1T0ktjRpGJLHA,69
|
|
13
|
-
metaflow_extensions/outerbounds/plugins/kubernetes/kubernetes_client.py,sha256=
|
|
13
|
+
metaflow_extensions/outerbounds/plugins/kubernetes/kubernetes_client.py,sha256=fx_XUkgR4r6hF2ilDfT5LubRyVrYMVIv5f6clHkCaEk,5988
|
|
14
14
|
metaflow_extensions/outerbounds/plugins/nim/__init__.py,sha256=GVnvSTjqYVj5oG2yh8KJFt7iZ33cEadDD5HbdmC9hJ0,1457
|
|
15
15
|
metaflow_extensions/outerbounds/plugins/nim/nim_manager.py,sha256=SWieODDxtIaeZwdMYtObDi57Kjyfw2DUuE6pJtU750w,9206
|
|
16
16
|
metaflow_extensions/outerbounds/plugins/nvcf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
metaflow_extensions/outerbounds/plugins/nvcf/heartbeat_store.py,sha256=pOWwm8LFQBbtku0zNBBwCyXxLK8U-hhC4naQcmU69nE,6217
|
|
18
|
-
metaflow_extensions/outerbounds/plugins/nvcf/nvcf.py,sha256=
|
|
18
|
+
metaflow_extensions/outerbounds/plugins/nvcf/nvcf.py,sha256=YShky0m7SvIoNm0VX1-_GZh2svc2zQ9oLdGj2FVRpy0,9471
|
|
19
19
|
metaflow_extensions/outerbounds/plugins/nvcf/nvcf_cli.py,sha256=YZb5AvbVgUwUJVxRxQ4JqqP8e1RMJr6dZ9U4KkHE-M8,9134
|
|
20
|
-
metaflow_extensions/outerbounds/plugins/nvcf/nvcf_decorator.py,sha256=
|
|
20
|
+
metaflow_extensions/outerbounds/plugins/nvcf/nvcf_decorator.py,sha256=TKWN3mG2twC40uChfWYVsNKqf3euQIM_YHLAuNf1pvA,6525
|
|
21
21
|
metaflow_extensions/outerbounds/plugins/snowpark/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
metaflow_extensions/outerbounds/plugins/snowpark/snowpark.py,sha256=0R8aFN9MpgWraqiaI6ZF82YpLdFJ1f-3z_-BPRpZfxM,10674
|
|
23
23
|
metaflow_extensions/outerbounds/plugins/snowpark/snowpark_cli.py,sha256=ErsVoCQLa33byiykOQzDEeEkRKk0mgffZme43f3jxn4,8747
|
|
@@ -33,7 +33,7 @@ metaflow_extensions/outerbounds/toplevel/global_aliases_for_metaflow_package.py,
|
|
|
33
33
|
metaflow_extensions/outerbounds/toplevel/plugins/azure/__init__.py,sha256=WUuhz2YQfI4fz7nIcipwwWq781eaoHEk7n4GAn1npDg,63
|
|
34
34
|
metaflow_extensions/outerbounds/toplevel/plugins/gcp/__init__.py,sha256=BbZiaH3uILlEZ6ntBLKeNyqn3If8nIXZFq_Apd7Dhco,70
|
|
35
35
|
metaflow_extensions/outerbounds/toplevel/plugins/kubernetes/__init__.py,sha256=5zG8gShSj8m7rgF4xgWBZFuY3GDP5n1T0ktjRpGJLHA,69
|
|
36
|
-
ob_metaflow_extensions-1.1.
|
|
37
|
-
ob_metaflow_extensions-1.1.
|
|
38
|
-
ob_metaflow_extensions-1.1.
|
|
39
|
-
ob_metaflow_extensions-1.1.
|
|
36
|
+
ob_metaflow_extensions-1.1.95.dist-info/METADATA,sha256=j1qtad3fZVzbxyKYvs7IsxCvPYa2LyEDsmlSYmPzF2E,520
|
|
37
|
+
ob_metaflow_extensions-1.1.95.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
|
|
38
|
+
ob_metaflow_extensions-1.1.95.dist-info/top_level.txt,sha256=NwG0ukwjygtanDETyp_BUdtYtqIA_lOjzFFh1TsnxvI,20
|
|
39
|
+
ob_metaflow_extensions-1.1.95.dist-info/RECORD,,
|
|
File without changes
|
{ob_metaflow_extensions-1.1.93.dist-info → ob_metaflow_extensions-1.1.95.dist-info}/top_level.txt
RENAMED
|
File without changes
|