oh-my-batch 0.5.5__tar.gz → 0.5.7__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.5 → oh_my_batch-0.5.7}/PKG-INFO +1 -1
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/combo.py +4 -2
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/job.py +8 -5
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/pyproject.toml +1 -1
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/LICENSE +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/README.md +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/__init__.py +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/__main__.py +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/assets/__init__.py +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/assets/functions.sh +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/batch.py +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/cli.py +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/misc.py +0 -0
- {oh_my_batch-0.5.5 → oh_my_batch-0.5.7}/oh_my_batch/util.py +0 -0
@@ -292,11 +292,13 @@ class ComboMaker:
|
|
292
292
|
v = f"\n{v}"
|
293
293
|
print(f"@{k}: {v}")
|
294
294
|
|
295
|
-
def done(self):
|
295
|
+
def done(self, debug=False):
|
296
296
|
"""
|
297
297
|
End of command chain
|
298
|
+
:param debug: If True, show all combos for debugging
|
298
299
|
"""
|
299
|
-
|
300
|
+
if debug:
|
301
|
+
self.show_combos()
|
300
302
|
|
301
303
|
def _make_combos(self):
|
302
304
|
if not self._vars:
|
@@ -88,13 +88,16 @@ class BaseJobManager:
|
|
88
88
|
|
89
89
|
time.sleep(interval)
|
90
90
|
|
91
|
-
|
91
|
+
raise_err = False
|
92
92
|
for job in jobs:
|
93
|
-
if not JobState.
|
93
|
+
if not JobState.is_terminal(job['state']):
|
94
|
+
logger.warning('Job %s is running, current state: %s', job['script'], job['state'])
|
95
|
+
raise_err = True
|
96
|
+
elif not JobState.is_success(job['state']):
|
94
97
|
logger.error('Job %s failed', job['script'])
|
95
|
-
|
96
|
-
if
|
97
|
-
raise RuntimeError('Some jobs failed')
|
98
|
+
raise_err = True
|
99
|
+
if raise_err and wait:
|
100
|
+
raise RuntimeError('Some jobs failed or not finished yet')
|
98
101
|
|
99
102
|
def wait(self, *job_ids, timeout=None, interval=10):
|
100
103
|
"""
|
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
|