More strict check of job success for PyPPL
- Checking all output files to make sure they are generated
- allowing custom returncode settings
- allowing a custom script to check the output file
# 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.
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}}'