1
0
Fork 0

Require error output to exist

With this commit, the error output is required to exist in order for an
instance to be considered done. This is just a defensive measure to
ensure that no useful information can be missed.
This commit is contained in:
Patrick Lühne 2017-11-20 23:32:42 +01:00
parent 837422e4b0
commit 4239e36a3d
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 2 additions and 1 deletions

View File

@ -136,9 +136,10 @@ def nextJob(config):
for configuration in configurations:
filenames = outputFilenames(configuration, instance, config)
outputFile = os.path.join(config["storage"]["local"], filenames["outputFile"])
errorFile = os.path.join(config["storage"]["local"], filenames["errorFile"])
environmentFile = os.path.join(config["storage"]["local"], filenames["environmentFile"])
if not os.path.exists(outputFile) or not os.path.exists(environmentFile):
if not os.path.exists(outputFile) or not os.path.exists(errorFile) or not os.path.exists(environmentFile):
return {"configuration": configuration, "instance": instance}
return None