You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by jc...@apache.org on 2016/03/11 16:45:14 UTC
aurora git commit: Log exceptions raised when thermos running
attempts to execute a process.
Repository: aurora
Updated Branches:
refs/heads/master 72bf8dbd2 -> d752d466c
Log exceptions raised when thermos running attempts to execute a process.
Reviewed at https://reviews.apache.org/r/44680/
Project: http://git-wip-us.apache.org/repos/asf/aurora/repo
Commit: http://git-wip-us.apache.org/repos/asf/aurora/commit/d752d466
Tree: http://git-wip-us.apache.org/repos/asf/aurora/tree/d752d466
Diff: http://git-wip-us.apache.org/repos/asf/aurora/diff/d752d466
Branch: refs/heads/master
Commit: d752d466c550118f052d23519d071eb41b2e5bf6
Parents: 72bf8db
Author: Joshua Cohen <jc...@apache.org>
Authored: Thu Mar 10 19:41:10 2016 -0600
Committer: Joshua Cohen <jc...@apache.org>
Committed: Thu Mar 10 19:41:10 2016 -0600
----------------------------------------------------------------------
src/main/python/apache/thermos/core/process.py | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/aurora/blob/d752d466/src/main/python/apache/thermos/core/process.py
----------------------------------------------------------------------
diff --git a/src/main/python/apache/thermos/core/process.py b/src/main/python/apache/thermos/core/process.py
index c343b2d..f147af7 100644
--- a/src/main/python/apache/thermos/core/process.py
+++ b/src/main/python/apache/thermos/core/process.py
@@ -285,6 +285,9 @@ class ProcessBase(object):
self._wait_for_control() # can raise CheckpointError
try:
self.execute()
+ except Exception as e:
+ self._log('Error trying to execute %s: %s' % (self._name, e))
+ raise e
finally:
self._ckpt.close()
self.finish()