yellowdog-python-examples 7.15.2__tar.gz → 7.15.3__tar.gz
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.
- {yellowdog_python_examples-7.15.2/yellowdog_python_examples.egg-info → yellowdog_python_examples-7.15.3}/PKG-INFO +1 -1
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/README.md +8 -8
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/pyproject.toml +2 -2
- yellowdog_python_examples-7.15.3/yellowdog_cli/__init__.py +1 -0
- yellowdog_python_examples-7.15.2/yellowdog_cli/analyse.py → yellowdog_python_examples-7.15.3/yellowdog_cli/compare.py +10 -9
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/args.py +7 -7
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/follow_utils.py +6 -2
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3/yellowdog_python_examples.egg-info}/PKG-INFO +1 -1
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_python_examples.egg-info/SOURCES.txt +1 -1
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_python_examples.egg-info/entry_points.txt +1 -1
- yellowdog_python_examples-7.15.2/yellowdog_cli/__init__.py +0 -1
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/LICENSE +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/PYPI_README.md +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/requirements.txt +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/setup.cfg +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_create_remove.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_demos.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_dryruns.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_entrypoints.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_gui.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_list.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_objects.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_variable_processing.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/abort.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/admin.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/boost.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/cancel.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/cloudwizard.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/create.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/delete.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/download.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/follow.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/format_json.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/hold.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/instantiate.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/jsonnet2json.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/list.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/provision.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/remove.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/resize.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/show.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/shutdown.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/start.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/submit.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/terminate.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/upload.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/__init__.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/check_imports.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/cloudwizard_aws.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/cloudwizard_aws_types.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/cloudwizard_azure.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/cloudwizard_common.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/cloudwizard_gcp.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/compact_json.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/config_types.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/csv_data.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/entity_utils.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/interactive.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/items.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/load_config.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/load_resources.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/misc_utils.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/printing.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/property_names.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/provision_utils.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/rich_console_input_fixed.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/settings.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/start_hold_common.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/submit_utils.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/type_check.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/upload_utils.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/validate_properties.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/variables.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/wrapper.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/ydid_utils.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/version.py +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_python_examples.egg-info/dependency_links.txt +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_python_examples.egg-info/requires.txt +0 -0
- {yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_python_examples.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: yellowdog-python-examples
|
|
3
|
-
Version: 7.15.
|
|
3
|
+
Version: 7.15.3
|
|
4
4
|
Summary: Python CLI commands using the YellowDog Python SDK
|
|
5
5
|
Author-email: YellowDog Limited <support@yellowdog.co>
|
|
6
6
|
Project-URL: Homepage, https://github.com/yellowdog/python-examples
|
|
@@ -123,10 +123,10 @@
|
|
|
123
123
|
* [yd-hold](#yd-hold)
|
|
124
124
|
* [yd-boost](#yd-boost)
|
|
125
125
|
* [yd-show](#yd-show)
|
|
126
|
-
* [yd-
|
|
126
|
+
* [yd-compare](#yd-compare)
|
|
127
127
|
|
|
128
128
|
<!-- Created by https://github.com/ekalinin/github-markdown-toc -->
|
|
129
|
-
<!-- Added by: pwt, at:
|
|
129
|
+
<!-- Added by: pwt, at: Wed Feb 26 15:47:37 GMT 2025 -->
|
|
130
130
|
|
|
131
131
|
<!--te-->
|
|
132
132
|
|
|
@@ -160,7 +160,7 @@ The commands provide the following capabilities:
|
|
|
160
160
|
- **Creating, Updating and Removing** Source Templates, Compute Templates, Keyrings, Credentials, Namespace Storage Configurations, Image Families, Allowances, Configured Worker Pools, User Attributes, and Namespace Policies with the **`yd-create`** and **`yd-remove`** commands
|
|
161
161
|
- **Following Event Streams** for Work Requirements, Worker Pools and Compute Requirements with the **`yd-follow`** command
|
|
162
162
|
- **Showing** the details of any YellowDog entity using its YellowDog ID with the **`yd-show`** command
|
|
163
|
-
- **
|
|
163
|
+
- **Comparing** whether worker pools are a match for task groups with the **`yd-compare`** command
|
|
164
164
|
|
|
165
165
|
The operation of the commands is controlled using TOML configuration files and/or environment variables and command line arguments. In addition, Work Requirements and Worker Pools can be defined using JSON files providing extensive configurability.
|
|
166
166
|
|
|
@@ -1060,7 +1060,7 @@ To examine the JSON that will actually be sent to the YellowDog API after all pr
|
|
|
1060
1060
|
|
|
1061
1061
|
A dry-run is useful for inspecting the results of all the processing that's been performed. To suppress all output except for the JSON itself, add the `--quiet` (`-q`) command line option.
|
|
1062
1062
|
|
|
1063
|
-
Note that the generated JSON is a consolidated form of what would be submitted to the YellowDog API, and Tasks are presented directly within their Task Groups for ease of comprehension. In actual API submissions, the Work Requirement with
|
|
1063
|
+
Note that the generated JSON is a consolidated form of what would be submitted to the YellowDog API, and Tasks are presented directly within their Task Groups for ease of comprehension. In actual API submissions, the Work Requirement with zero or more Task Groups is submitted first, and Tasks are then added to their Task Groups separately, in subsequent API calls. Task Groups and Tasks can also later be added to the Work Requirement.
|
|
1064
1064
|
|
|
1065
1065
|
A simple example of the JSON output is shown below, showing a Work Requirement with a single Task Group, containing a single Task.
|
|
1066
1066
|
|
|
@@ -2771,17 +2771,17 @@ The `yd-show` command will show the details (in JSON) of any YellowDog entity th
|
|
|
2771
2771
|
- Keyrings
|
|
2772
2772
|
- Allowances
|
|
2773
2773
|
|
|
2774
|
-
## yd-
|
|
2774
|
+
## yd-compare
|
|
2775
2775
|
|
|
2776
|
-
The `yd-
|
|
2776
|
+
The `yd-compare` command takes a Work Requirement or Task Group ID and one or more Worker Pool IDs, and compares the selected Task Group(s) against the available Nodes/Workers in the Worker Pool(s). If a Work Requirement ID is supplied, all Task Groups in the Work Requirement will be comapared.
|
|
2777
2777
|
|
|
2778
2778
|
```commandline
|
|
2779
|
-
yd-
|
|
2779
|
+
yd-compare ydid:taskgrp:000000:83587010-5e26-4174-92a7-c7cc2612638d:1 ydid:wrkrpool:000000:3666e4c5-382e-4512-a2c7-33dbb839f75
|
|
2780
2780
|
```
|
|
2781
2781
|
|
|
2782
2782
|
The command checks if the **Run Specification** of a Task Group matches the properties of the Worker Pools and their registered Nodes and Workers, meaning there are Workers in the Worker Pool that could be claimed by the Task Group and that the Worker Pool would be a candidate for scaling up to meet the demands of the Task Group.
|
|
2783
2783
|
|
|
2784
|
-
A detailed matching report showing the
|
|
2784
|
+
A detailed matching report showing the comparison against each specific property is created, which can be used to determine which properties are preventing a Worker Pool match.
|
|
2785
2785
|
|
|
2786
2786
|
The match status of a Worker Pool falls into one of four categories:
|
|
2787
2787
|
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
|
|
43
43
|
[project.scripts]
|
|
44
44
|
yd-abort = "yellowdog_cli.abort:main"
|
|
45
|
-
yd-analyse = "yellowdog_cli.analyse:main"
|
|
46
45
|
yd-boost = "yellowdog_cli.boost:main"
|
|
47
46
|
yd-cancel = "yellowdog_cli.cancel:main"
|
|
48
47
|
yd-cloudwizard = "yellowdog_cli.cloudwizard:main"
|
|
48
|
+
yd-compare = "yellowdog_cli.compare:main"
|
|
49
49
|
yd-create = "yellowdog_cli.create:main"
|
|
50
50
|
yd-delete = "yellowdog_cli.delete:main"
|
|
51
51
|
yd-download = "yellowdog_cli.download:main"
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
yd-resize = "yellowdog_cli.resize:main"
|
|
61
61
|
yd-show = "yellowdog_cli.show:main"
|
|
62
62
|
yd-shutdown = "yellowdog_cli.shutdown:main"
|
|
63
|
-
yd-submit = "yellowdog_cli.submit:main"
|
|
64
63
|
yd-start = "yellowdog_cli.start:main"
|
|
64
|
+
yd-submit = "yellowdog_cli.submit:main"
|
|
65
65
|
yd-terminate = "yellowdog_cli.terminate:main"
|
|
66
66
|
yd-upload = "yellowdog_cli.upload:main"
|
|
67
67
|
yd-version = "yellowdog_cli.version:main"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "7.15.3"
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env python3
|
|
2
2
|
|
|
3
3
|
"""
|
|
4
|
-
A script to
|
|
4
|
+
A script to compare work requirements and task groups with worker pools,
|
|
5
|
+
and check for matches.
|
|
5
6
|
"""
|
|
6
7
|
|
|
7
8
|
from dataclasses import dataclass
|
|
@@ -130,7 +131,7 @@ class MatchReport:
|
|
|
130
131
|
else:
|
|
131
132
|
match_str = "NON-MATCHING"
|
|
132
133
|
print_log(
|
|
133
|
-
f"Detailed report for {match_str} ({self.worker_pool_status}) worker pool "
|
|
134
|
+
f"Detailed comparison report for {match_str} ({self.worker_pool_status}) worker pool "
|
|
134
135
|
f"'{self.worker_pool_name}' ({self.worker_pool_id})",
|
|
135
136
|
override_quiet=True,
|
|
136
137
|
)
|
|
@@ -607,12 +608,12 @@ def _get_worker_pool_by_id(worker_pool_id) -> WorkerPool:
|
|
|
607
608
|
)
|
|
608
609
|
|
|
609
610
|
|
|
610
|
-
def
|
|
611
|
+
def _compare_task_group(task_group: TaskGroup, worker_pools: WorkerPools):
|
|
611
612
|
"""
|
|
612
|
-
|
|
613
|
+
Compare a Task Group.
|
|
613
614
|
"""
|
|
614
615
|
print_log(
|
|
615
|
-
f"
|
|
616
|
+
f"Comparing Task Group '{task_group.name}' ({task_group.id})",
|
|
616
617
|
override_quiet=True,
|
|
617
618
|
)
|
|
618
619
|
|
|
@@ -652,7 +653,7 @@ def _analyse_task_group(task_group: TaskGroup, worker_pools: WorkerPools):
|
|
|
652
653
|
for match_report in match_reports:
|
|
653
654
|
match_report.print_detailed_report()
|
|
654
655
|
|
|
655
|
-
print_log("Task Group
|
|
656
|
+
print_log("Task Group comparison complete")
|
|
656
657
|
|
|
657
658
|
|
|
658
659
|
@main_wrapper
|
|
@@ -670,7 +671,7 @@ def main():
|
|
|
670
671
|
|
|
671
672
|
# Task group
|
|
672
673
|
if get_ydid_type(ARGS_PARSER.wr_or_tg_id) == YDIDType.TASK_GROUP:
|
|
673
|
-
|
|
674
|
+
_compare_task_group(
|
|
674
675
|
_get_task_group_by_id(ARGS_PARSER.wr_or_tg_id), worker_pools
|
|
675
676
|
)
|
|
676
677
|
|
|
@@ -678,12 +679,12 @@ def main():
|
|
|
678
679
|
elif get_ydid_type(ARGS_PARSER.wr_or_tg_id) == YDIDType.WORK_REQUIREMENT:
|
|
679
680
|
work_requirement = _get_work_requirement_by_id(ARGS_PARSER.wr_or_tg_id)
|
|
680
681
|
print_log(
|
|
681
|
-
f"
|
|
682
|
+
f"Comparing all Task Groups in Work Requirement '{work_requirement.name}' "
|
|
682
683
|
f"({work_requirement.id})",
|
|
683
684
|
override_quiet=True,
|
|
684
685
|
)
|
|
685
686
|
for task_group in work_requirement.taskGroups:
|
|
686
|
-
|
|
687
|
+
_compare_task_group(task_group, worker_pools)
|
|
687
688
|
|
|
688
689
|
else:
|
|
689
690
|
raise Exception(
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/args.py
RENAMED
|
@@ -115,7 +115,7 @@ class CLIParser:
|
|
|
115
115
|
)
|
|
116
116
|
|
|
117
117
|
# Module-specific argument sets
|
|
118
|
-
if not any(module in sys.argv[0] for module in ["
|
|
118
|
+
if not any(module in sys.argv[0] for module in ["compare"]):
|
|
119
119
|
parser.add_argument(
|
|
120
120
|
"--variable",
|
|
121
121
|
"-v",
|
|
@@ -137,7 +137,7 @@ class CLIParser:
|
|
|
137
137
|
"cloudwizard",
|
|
138
138
|
"follow",
|
|
139
139
|
"list",
|
|
140
|
-
"
|
|
140
|
+
"compare",
|
|
141
141
|
]
|
|
142
142
|
):
|
|
143
143
|
self.namespace_required = True
|
|
@@ -1121,13 +1121,13 @@ class CLIParser:
|
|
|
1121
1121
|
),
|
|
1122
1122
|
)
|
|
1123
1123
|
|
|
1124
|
-
if "
|
|
1124
|
+
if "compare" in sys.argv[0]:
|
|
1125
1125
|
parser.add_argument(
|
|
1126
1126
|
"wr_or_tg_id",
|
|
1127
1127
|
metavar="<work-requirement-or-task-group-ID>",
|
|
1128
1128
|
type=str,
|
|
1129
1129
|
help=(
|
|
1130
|
-
"the YellowDog ID of the work requirement or task group to be
|
|
1130
|
+
"the YellowDog ID of the work requirement or task group to be compared"
|
|
1131
1131
|
),
|
|
1132
1132
|
)
|
|
1133
1133
|
parser.add_argument(
|
|
@@ -1135,7 +1135,7 @@ class CLIParser:
|
|
|
1135
1135
|
metavar="<worker-pool-ID>",
|
|
1136
1136
|
type=str,
|
|
1137
1137
|
nargs="+",
|
|
1138
|
-
help="the YellowDog ID(s) of the worker pool(s) to
|
|
1138
|
+
help="the YellowDog ID(s) of the worker pool(s) to compare",
|
|
1139
1139
|
)
|
|
1140
1140
|
|
|
1141
1141
|
self.args = parser.parse_args()
|
|
@@ -1681,9 +1681,9 @@ def lookup_module_description(module_name: str) -> Optional[str]:
|
|
|
1681
1681
|
suffix = "boosting Allowances"
|
|
1682
1682
|
elif "show" in module_name:
|
|
1683
1683
|
suffix = "showing the JSON details of entities referenced by their YDIDs"
|
|
1684
|
-
elif "
|
|
1684
|
+
elif "compare" in module_name:
|
|
1685
1685
|
suffix = (
|
|
1686
|
-
"
|
|
1686
|
+
"comparing whether a work requirement or task group is matched by "
|
|
1687
1687
|
"workers in the specified worker pools"
|
|
1688
1688
|
)
|
|
1689
1689
|
|
|
@@ -95,8 +95,12 @@ def follow_events(ydid: str, ydid_type: YDIDType):
|
|
|
95
95
|
)
|
|
96
96
|
|
|
97
97
|
if response.status_code != 200:
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
try:
|
|
99
|
+
error_text = response.json()["message"]
|
|
100
|
+
except:
|
|
101
|
+
error_text = "(JSON error cannot be decoded)"
|
|
102
|
+
print_error(f"'{ydid}': {error_text}")
|
|
103
|
+
break
|
|
100
104
|
|
|
101
105
|
if response.encoding is None:
|
|
102
106
|
response.encoding = "utf-8"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: yellowdog-python-examples
|
|
3
|
-
Version: 7.15.
|
|
3
|
+
Version: 7.15.3
|
|
4
4
|
Summary: Python CLI commands using the YellowDog Python SDK
|
|
5
5
|
Author-email: YellowDog Limited <support@yellowdog.co>
|
|
6
6
|
Project-URL: Homepage, https://github.com/yellowdog/python-examples
|
|
@@ -14,10 +14,10 @@ tests/test_variable_processing.py
|
|
|
14
14
|
yellowdog_cli/__init__.py
|
|
15
15
|
yellowdog_cli/abort.py
|
|
16
16
|
yellowdog_cli/admin.py
|
|
17
|
-
yellowdog_cli/analyse.py
|
|
18
17
|
yellowdog_cli/boost.py
|
|
19
18
|
yellowdog_cli/cancel.py
|
|
20
19
|
yellowdog_cli/cloudwizard.py
|
|
20
|
+
yellowdog_cli/compare.py
|
|
21
21
|
yellowdog_cli/create.py
|
|
22
22
|
yellowdog_cli/delete.py
|
|
23
23
|
yellowdog_cli/download.py
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[console_scripts]
|
|
2
2
|
yd-abort = yellowdog_cli.abort:main
|
|
3
|
-
yd-analyse = yellowdog_cli.analyse:main
|
|
4
3
|
yd-boost = yellowdog_cli.boost:main
|
|
5
4
|
yd-cancel = yellowdog_cli.cancel:main
|
|
6
5
|
yd-cloudwizard = yellowdog_cli.cloudwizard:main
|
|
6
|
+
yd-compare = yellowdog_cli.compare:main
|
|
7
7
|
yd-create = yellowdog_cli.create:main
|
|
8
8
|
yd-delete = yellowdog_cli.delete:main
|
|
9
9
|
yd-download = yellowdog_cli.download:main
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "7.15.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_create_remove.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/tests/test_entrypoints.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/abort.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/admin.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/boost.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/cancel.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/cloudwizard.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/create.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/delete.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/download.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/follow.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/format_json.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/instantiate.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/jsonnet2json.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/provision.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/remove.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/resize.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/shutdown.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/start.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/submit.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/terminate.py
RENAMED
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/upload.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/items.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/utils/wrapper.py
RENAMED
|
File without changes
|
|
File without changes
|
{yellowdog_python_examples-7.15.2 → yellowdog_python_examples-7.15.3}/yellowdog_cli/version.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|