oh-my-batch 0.5.6__py3-none-any.whl → 0.5.7__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.
- oh_my_batch/job.py +8 -5
- {oh_my_batch-0.5.6.dist-info → oh_my_batch-0.5.7.dist-info}/METADATA +1 -1
- {oh_my_batch-0.5.6.dist-info → oh_my_batch-0.5.7.dist-info}/RECORD +6 -6
- {oh_my_batch-0.5.6.dist-info → oh_my_batch-0.5.7.dist-info}/LICENSE +0 -0
- {oh_my_batch-0.5.6.dist-info → oh_my_batch-0.5.7.dist-info}/WHEEL +0 -0
- {oh_my_batch-0.5.6.dist-info → oh_my_batch-0.5.7.dist-info}/entry_points.txt +0 -0
oh_my_batch/job.py
CHANGED
@@ -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
|
"""
|
@@ -5,11 +5,11 @@ oh_my_batch/assets/functions.sh,sha256=LaiavZBu84D7C1r-dWhf91vPTuHXCMV1DQZUIPVQn
|
|
5
5
|
oh_my_batch/batch.py,sha256=i3q1zY2li-YyN_99zjlpNJlZqqF5PSO3hwW1e0_N2VE,3958
|
6
6
|
oh_my_batch/cli.py,sha256=Jyz8q2pUYke3mfJS6F_G9S9hApddgXxQw1BsN6Kfkjc,553
|
7
7
|
oh_my_batch/combo.py,sha256=Twtzbv3hQUCNzwLjtbhmXJ_De5YNlL1mSzK-Zqejh7Y,11423
|
8
|
-
oh_my_batch/job.py,sha256=
|
8
|
+
oh_my_batch/job.py,sha256=fFoyLd0rKilV979ovEf0Y3iXgpyyDmHIfkMSZBaAX4Q,7446
|
9
9
|
oh_my_batch/misc.py,sha256=G_iOovRCrShBJJCc82QLN0CvMqW4adOefEoY1GedEiw,452
|
10
10
|
oh_my_batch/util.py,sha256=5ve2QcviuF0UHFLrsXmjMTj0ogXJ4g05q1y-yWCFuOk,2409
|
11
|
-
oh_my_batch-0.5.
|
12
|
-
oh_my_batch-0.5.
|
13
|
-
oh_my_batch-0.5.
|
14
|
-
oh_my_batch-0.5.
|
15
|
-
oh_my_batch-0.5.
|
11
|
+
oh_my_batch-0.5.7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
12
|
+
oh_my_batch-0.5.7.dist-info/METADATA,sha256=EPKPEteFvfkUMC70IhiDoyBaTCwBX2_zBwRdauJ1CF8,5468
|
13
|
+
oh_my_batch-0.5.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
14
|
+
oh_my_batch-0.5.7.dist-info/entry_points.txt,sha256=ZY2GutSoNjjSyJ4qO2pTeseKUFgoTYdvmgkuZZkwi68,77
|
15
|
+
oh_my_batch-0.5.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|