aboutsummaryrefslogtreecommitdiff
path: root/ipsutils/task.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2013-04-22 17:00:22 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2013-04-22 17:00:22 -0400
commit7a24a7b79a64715394b64de6e97899b4f6c221fd (patch)
tree17c33d2e34f9618ec6b4eb19e6bb69b25b87bddc /ipsutils/task.py
parentfe621885f5a21d8fb946787e2ef7d0b9035d39fa (diff)
downloadipsutils-7a24a7b79a64715394b64de6e97899b4f6c221fd.tar.gz
Exit on failure
Diffstat (limited to 'ipsutils/task.py')
-rw-r--r--ipsutils/task.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipsutils/task.py b/ipsutils/task.py
index 1d8faeb..321fec8 100644
--- a/ipsutils/task.py
+++ b/ipsutils/task.py
@@ -27,7 +27,10 @@ class TaskController(object):
""" FILO execution of tasks
"""
for stack_entry in self.stack:
- stack_entry.run()
+ status = stack_entry.run()
+ if not status:
+ exit(status)
+
class NamedTask(object):
def __init__(self, name, func, *args):