Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwwang/pyppl_strict
https://github.com/pwwang/pyppl_strict
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pwwang/pyppl_strict
- Owner: pwwang
- License: mit
- Created: 2019-12-24T21:40:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-06T05:15:04.000Z (over 4 years ago)
- Last Synced: 2024-12-10T04:27:12.730Z (24 days ago)
- Language: Python
- Size: 44.9 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyppl_strict
More strict check of job success for PyPPL
## Features:
1. Checking all output files to make sure they are generated
2. allowing custom returncode settings
3. allowing a custom script to check the output file## Usage
```python
# allow returncode 1 to be valid as well
# (0 is valid of couse)
PyPPL(config_strict_rc = 1).start(...).run()
```The if your job returns `1`, it won't fail.
```python
p = Proc(config_strict_expect = 'grep 123 {{o.outfile}}')
p.input = {'a': [1]}
p.output = 'outfile:file:{{i.a}}.txt'
p.script = 'echo 124 > {{o.outfile}}PyPPL().start(p).run()
# will fail
# following script will pass
p.script = 'echo 123 > {{o.outfile}}'
```