oh-my-batch 0.4.6__tar.gz → 0.4.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.
@@ -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
@@ -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
  [tool.poetry]
2
2
  name = "oh-my-batch"
3
- version = "0.4.6"
3
+ version = "0.4.7"
4
4
  description = ""
5
5
  authors = ["weihong.xu <xuweihong.cn@gmail.com>"]
6
6
  license = "GPL"
File without changes
File without changes