Skip to content

Commit

Permalink
Fix error when stopping SimpleProcess type, more error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Foster committed Dec 21, 2012
1 parent a36d79d commit 3676785
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion pyon/container/procs.py
Expand Up @@ -604,7 +604,6 @@ def _spawn_simple_process(self, process_id, name, module, cls, config):


# cleanup method to delete process queue (@TODO: leaks a bit here - should use XOs) # cleanup method to delete process queue (@TODO: leaks a bit here - should use XOs)
def cleanup(*args): def cleanup(*args):
self._cleanup_method(process_instance.id, rsvc)
for name in pub_names: for name in pub_names:
p = getattr(process_instance, name) p = getattr(process_instance, name)
p.close() p.close()
Expand Down
2 changes: 1 addition & 1 deletion pyon/ion/process.py
Expand Up @@ -412,7 +412,7 @@ def _notify_stop(self):
try: try:
self._cleanup_method(self) self._cleanup_method(self)
except Exception as ex: except Exception as ex:
log.warn("Cleanup method error, attempting to ignore: %s", ex) log.warn("Cleanup method error, attempting to ignore: %s\nTraceback: %s", ex, traceback.format_exc())


def get_ready_event(self): def get_ready_event(self):
""" """
Expand Down

0 comments on commit 3676785

Please sign in to comment.