outerbounds 0.3.94__py3-none-any.whl → 0.3.95__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.
- outerbounds/command_groups/apps_cli.py +21 -27
- {outerbounds-0.3.94.dist-info → outerbounds-0.3.95.dist-info}/METADATA +4 -4
- {outerbounds-0.3.94.dist-info → outerbounds-0.3.95.dist-info}/RECORD +5 -5
- {outerbounds-0.3.94.dist-info → outerbounds-0.3.95.dist-info}/WHEEL +0 -0
- {outerbounds-0.3.94.dist-info → outerbounds-0.3.95.dist-info}/entry_points.txt +0 -0
@@ -164,14 +164,9 @@ def start(config_dir=None, profile=None, port=-1, name="", output=""):
|
|
164
164
|
|
165
165
|
for named_port in workstation["spec"]["named_ports"]:
|
166
166
|
if int(named_port["port"]) == port:
|
167
|
-
if named_port["enabled"]:
|
168
|
-
already_running_message = (
|
169
|
-
f"App {name} already running on port {port}!"
|
170
|
-
if named_port["name"] == name
|
171
|
-
else f"App {named_port['name']} already running on port {port} is now renamed to {name}!"
|
172
|
-
)
|
167
|
+
if named_port["enabled"] and named_port["name"] == name:
|
173
168
|
click.secho(
|
174
|
-
|
169
|
+
f"App {name} already running on port {port}!",
|
175
170
|
fg="green",
|
176
171
|
err=True,
|
177
172
|
)
|
@@ -361,6 +356,7 @@ def stop(config_dir=None, profile=None, port=-1, name="", output=""):
|
|
361
356
|
click.echo(json.dumps(stop_app_response.as_dict(), indent=4))
|
362
357
|
return
|
363
358
|
|
359
|
+
app_found = False
|
364
360
|
workstations_json = workstations_response.json()["workstations"]
|
365
361
|
for workstation in workstations_json:
|
366
362
|
if workstation["instance_id"] == os.environ["WORKSTATION_ID"]:
|
@@ -370,27 +366,9 @@ def stop(config_dir=None, profile=None, port=-1, name="", output=""):
|
|
370
366
|
int(named_port["port"]) == port
|
371
367
|
or named_port["name"] == name
|
372
368
|
):
|
369
|
+
app_found = True
|
373
370
|
stop_app_response.add_step(validate_port_exists)
|
374
|
-
if
|
375
|
-
already_stopped_message = (
|
376
|
-
f"No deployed app named {named_port['name']} found."
|
377
|
-
if name
|
378
|
-
else f"There is no app deployed on port {port}"
|
379
|
-
)
|
380
|
-
click.secho(
|
381
|
-
already_stopped_message,
|
382
|
-
fg="green",
|
383
|
-
err=True,
|
384
|
-
)
|
385
|
-
stop_app_response.add_step(stop_app_step)
|
386
|
-
if output == "json":
|
387
|
-
click.echo(
|
388
|
-
json.dumps(
|
389
|
-
stop_app_response.as_dict(), indent=4
|
390
|
-
)
|
391
|
-
)
|
392
|
-
return
|
393
|
-
else:
|
371
|
+
if named_port["enabled"]:
|
394
372
|
try:
|
395
373
|
response = requests.put(
|
396
374
|
f"{api_url}/v1/workstations/update/{os.environ['WORKSTATION_ID']}/namedports",
|
@@ -428,6 +406,22 @@ def stop(config_dir=None, profile=None, port=-1, name="", output=""):
|
|
428
406
|
)
|
429
407
|
return
|
430
408
|
|
409
|
+
if app_found:
|
410
|
+
already_stopped_message = (
|
411
|
+
f"No deployed app named {name} found."
|
412
|
+
if name
|
413
|
+
else f"There is no app deployed on port {port}"
|
414
|
+
)
|
415
|
+
click.secho(
|
416
|
+
already_stopped_message,
|
417
|
+
fg="green",
|
418
|
+
err=True,
|
419
|
+
)
|
420
|
+
stop_app_response.add_step(stop_app_step)
|
421
|
+
if output == "json":
|
422
|
+
click.echo(json.dumps(stop_app_response.as_dict(), indent=4))
|
423
|
+
return
|
424
|
+
|
431
425
|
err_message = (
|
432
426
|
(f"Port {port} not found on workstation {os.environ['WORKSTATION_ID']}")
|
433
427
|
if port != -1
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: outerbounds
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.95
|
4
4
|
Summary: More Data Science, Less Administration
|
5
5
|
License: Proprietary
|
6
6
|
Keywords: data science,machine learning,MLOps
|
@@ -24,9 +24,9 @@ Requires-Dist: google-api-core (>=2.16.1,<3.0.0) ; extra == "gcp"
|
|
24
24
|
Requires-Dist: google-auth (>=2.27.0,<3.0.0) ; extra == "gcp"
|
25
25
|
Requires-Dist: google-cloud-secret-manager (>=2.20.0,<3.0.0) ; extra == "gcp"
|
26
26
|
Requires-Dist: google-cloud-storage (>=2.14.0,<3.0.0) ; extra == "gcp"
|
27
|
-
Requires-Dist: ob-metaflow (==2.12.
|
28
|
-
Requires-Dist: ob-metaflow-extensions (==1.1.
|
29
|
-
Requires-Dist: ob-metaflow-stubs (==5.
|
27
|
+
Requires-Dist: ob-metaflow (==2.12.18.1)
|
28
|
+
Requires-Dist: ob-metaflow-extensions (==1.1.83)
|
29
|
+
Requires-Dist: ob-metaflow-stubs (==5.6)
|
30
30
|
Requires-Dist: opentelemetry-distro (==0.41b0)
|
31
31
|
Requires-Dist: opentelemetry-exporter-otlp-proto-http (==1.20.0)
|
32
32
|
Requires-Dist: opentelemetry-instrumentation-requests (==0.41b0)
|
@@ -41,7 +41,7 @@ outerbounds/_vendor/yaml/serializer.py,sha256=8wFZRy9SsQSktF_f9OOroroqsh4qVUe53r
|
|
41
41
|
outerbounds/_vendor/yaml/tokens.py,sha256=JBSu38wihGr4l73JwbfMA7Ks1-X84g8-NskTz7KwPmA,2578
|
42
42
|
outerbounds/cli_main.py,sha256=e9UMnPysmc7gbrimq2I4KfltggyU7pw59Cn9aEguVcU,74
|
43
43
|
outerbounds/command_groups/__init__.py,sha256=QPWtj5wDRTINDxVUL7XPqG3HoxHNvYOg08EnuSZB2Hc,21
|
44
|
-
outerbounds/command_groups/apps_cli.py,sha256=
|
44
|
+
outerbounds/command_groups/apps_cli.py,sha256=iXaLnO-FwU_zK2ZjE-gBu1ZQdOYDLCbT0HJXJJZckeE,21895
|
45
45
|
outerbounds/command_groups/cli.py,sha256=q0hdJO4biD3iEOdyJcxnRkeleA8AKAhx842kQ49I6kk,365
|
46
46
|
outerbounds/command_groups/local_setup_cli.py,sha256=tuuqJRXQ_guEwOuQSIf9wkUU0yg8yAs31myGViAK15s,36364
|
47
47
|
outerbounds/command_groups/perimeters_cli.py,sha256=mrJfFIRYFOjuiz-9h4OKg2JT8Utmbs72z6wvPzDss3s,18685
|
@@ -53,7 +53,7 @@ outerbounds/utils/metaflowconfig.py,sha256=l2vJbgPkLISU-XPGZFaC8ZKmYFyJemlD6bwB-
|
|
53
53
|
outerbounds/utils/schema.py,sha256=lMUr9kNgn9wy-sO_t_Tlxmbt63yLeN4b0xQXbDUDj4A,2331
|
54
54
|
outerbounds/utils/utils.py,sha256=4Z8cszNob_8kDYCLNTrP-wWads_S_MdL3Uj3ju4mEsk,501
|
55
55
|
outerbounds/vendor.py,sha256=gRLRJNXtZBeUpPEog0LOeIsl6GosaFFbCxUvR4bW6IQ,5093
|
56
|
-
outerbounds-0.3.
|
57
|
-
outerbounds-0.3.
|
58
|
-
outerbounds-0.3.
|
59
|
-
outerbounds-0.3.
|
56
|
+
outerbounds-0.3.95.dist-info/entry_points.txt,sha256=7ye0281PKlvqxu15rjw60zKg2pMsXI49_A8BmGqIqBw,47
|
57
|
+
outerbounds-0.3.95.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
58
|
+
outerbounds-0.3.95.dist-info/METADATA,sha256=3LLiN9Qy5q9P2ps9CMZO6C_5zi8eSTkxniYoRILxbxA,1632
|
59
|
+
outerbounds-0.3.95.dist-info/RECORD,,
|
File without changes
|
File without changes
|