Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions airflow/executors/local_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ def _execute_work_in_fork(self, command: CommandType) -> str:
ret = 0
return State.SUCCESS
except Exception as e:
self.log.error("Failed to execute task %s.", str(e))
self.log.exception("Failed to execute task %s.", e)
return State.FAILED
finally:
Sentry.flush()
logging.shutdown()
os._exit(ret)
raise RuntimeError('unreachable -- keep mypy happy')

@abstractmethod
def do_work(self):
Expand Down