ashb commented on a change in pull request #7232: [AIRFLOW-6569] Flush pending 
Sentry exceptions before exiting forked process
URL: https://github.com/apache/airflow/pull/7232#discussion_r375402889
 
 

 ##########
 File path: airflow/sentry.py
 ##########
 @@ -149,6 +154,10 @@ def wrapper(task_instance, *args, session=None, **kwargs):
 
         return wrapper
 
+    def flush(self):
+        from sentry_sdk import Hub
+        Hub.current.flush()
 
 Review comment:
   Looks like that was added in 0.7.3 and we already depend on  >=0.8.0

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to