Commit b1d02767 authored by Łukasz Nowak's avatar Łukasz Nowak

In case of promise failure run is not clean.

parent 3d43d99b
......@@ -543,11 +543,13 @@ class Slapgrid(object):
if process_handler.poll() is None:
process_handler.kill()
computer_partition.error("The promise %r timed out" % promise)
clean_run = False
elif process_handler.poll() != 0:
stderr = process_handler.communicate()[1]
if stderr is None:
stderr = 'No error output from %r.' % promise
computer_partition.error(stderr)
clean_run = False
logger.info("Finished computer partitions...")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment