Skip to content

Commit

Permalink
openlineage: notify that logged exception was caught (#39493)
Browse files Browse the repository at this point in the history
Signed-off-by: Maciej Obuchowski <obuchowski.maciej@gmail.com>
  • Loading branch information
mobuchowski committed May 8, 2024
1 parent 58509f5 commit 02ce7f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/providers/openlineage/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ def wrapper(*args, **kwargs):
try:
return f(*args, **kwargs)
except Exception as e:
log.warning(
"Note: exception below is being caught: it's printed for visibility. However OpenLineage events aren't being emitted. If you see that, task has completed successfully despite not getting OL events."
)
log.warning(e)

return wrapper
Expand Down

0 comments on commit 02ce7f1

Please sign in to comment.