Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-13732: TaskRunner: ensure errors have been logged #46

Merged
merged 1 commit into from
Apr 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions python/lsst/pipe/base/cmdLineTask.py
Expand Up @@ -428,6 +428,11 @@ def __call__(self, args):

if not isinstance(e, TaskError):
traceback.print_exc(file=sys.stderr)

# Ensure all errors have been logged and aren't hanging around in a buffer
sys.stdout.flush()
sys.stderr.flush()

task.writeMetadata(dataRef)

# remove MDC so it does not show up outside of task context
Expand Down