oh-my-batch 0.4.6__py3-none-any.whl → 0.4.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 CHANGED
@@ -87,7 +87,13 @@ class BaseJobManager:
87
87
  break
88
88
 
89
89
  time.sleep(interval)
90
-
90
+ for job in jobs:
91
+ error = False
92
+ if not JobState.is_success(job['state']):
93
+ logger.error('Job %s failed', job['script'])
94
+ error = True
95
+ if error:
96
+ raise RuntimeError('Some jobs failed')
91
97
 
92
98
  def _update_jobs(self, jobs: List[dict], max_tries: int, submit_opts: str):
93
99
  jobs = self._update_state(jobs)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: oh-my-batch
3
- Version: 0.4.6
3
+ Version: 0.4.7
4
4
  Summary:
5
5
  License: GPL
6
6
  Author: weihong.xu
@@ -5,11 +5,11 @@ oh_my_batch/assets/functions.sh,sha256=LaiavZBu84D7C1r-dWhf91vPTuHXCMV1DQZUIPVQn
5
5
  oh_my_batch/batch.py,sha256=o4G7AlaBOUNtwCWfO5bGnPA-iWhhq_iJxpALy1oIYb8,3593
6
6
  oh_my_batch/cli.py,sha256=Jyz8q2pUYke3mfJS6F_G9S9hApddgXxQw1BsN6Kfkjc,553
7
7
  oh_my_batch/combo.py,sha256=A5flYsjugcelj105P6Nq4M3kNGtdqh3c7QaSIL3hUcg,9954
8
- oh_my_batch/job.py,sha256=Uk0E-WxnexBu9wuUV3uc1aAwVF_5rWdNdLEOB8Y9B-U,6252
8
+ oh_my_batch/job.py,sha256=Foq-xyTj01KaCxZXmfXqTZ8orFL9ZVLix2dqT5w-B3Q,6515
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.4.6.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
12
- oh_my_batch-0.4.6.dist-info/METADATA,sha256=R1N1dVmh-00kRGAnWVVHtXn1WbKwOMer4GuDnM3mkRA,5384
13
- oh_my_batch-0.4.6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
- oh_my_batch-0.4.6.dist-info/entry_points.txt,sha256=ZY2GutSoNjjSyJ4qO2pTeseKUFgoTYdvmgkuZZkwi68,77
15
- oh_my_batch-0.4.6.dist-info/RECORD,,
11
+ oh_my_batch-0.4.7.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
12
+ oh_my_batch-0.4.7.dist-info/METADATA,sha256=IbPGeI3srsM97vpX15osZ-dgb3s3pNLqIxsK9IdikT0,5384
13
+ oh_my_batch-0.4.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
14
+ oh_my_batch-0.4.7.dist-info/entry_points.txt,sha256=ZY2GutSoNjjSyJ4qO2pTeseKUFgoTYdvmgkuZZkwi68,77
15
+ oh_my_batch-0.4.7.dist-info/RECORD,,