oh-my-batch 0.5.3__tar.gz → 0.5.5__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.
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/PKG-INFO +1 -1
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/combo.py +13 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/job.py +1 -1
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/pyproject.toml +1 -1
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/LICENSE +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/README.md +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/__init__.py +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/__main__.py +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/assets/__init__.py +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/assets/functions.sh +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/batch.py +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/cli.py +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/misc.py +0 -0
- {oh_my_batch-0.5.3 → oh_my_batch-0.5.5}/oh_my_batch/util.py +0 -0
@@ -152,6 +152,19 @@ class ComboMaker:
|
|
152
152
|
raise ValueError(f"Variable {key} not found")
|
153
153
|
return self
|
154
154
|
|
155
|
+
def sort(self, *keys: str, reverse=False):
|
156
|
+
"""
|
157
|
+
Sort variables
|
158
|
+
:param keys: Variable names to sort
|
159
|
+
:param reverse: If True, sort in descending order, default is False
|
160
|
+
"""
|
161
|
+
for key in keys:
|
162
|
+
if key in self._vars:
|
163
|
+
self._vars[key].sort(reverse=reverse)
|
164
|
+
else:
|
165
|
+
raise ValueError(f"Variable {key} not found")
|
166
|
+
return self
|
167
|
+
|
155
168
|
def set_broadcast(self, *keys: str):
|
156
169
|
"""
|
157
170
|
Specify variables use broadcast strategy instead of cartesian product
|
@@ -93,7 +93,7 @@ class BaseJobManager:
|
|
93
93
|
if not JobState.is_success(job['state']):
|
94
94
|
logger.error('Job %s failed', job['script'])
|
95
95
|
error = True
|
96
|
-
if error and
|
96
|
+
if error and wait:
|
97
97
|
raise RuntimeError('Some jobs failed')
|
98
98
|
|
99
99
|
def wait(self, *job_ids, timeout=None, interval=10):
|
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
|