You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/07 07:28:37 UTC

[GitHub] [airflow] robinedwards commented on a change in pull request #7232: [AIRFLOW-6569] Flush pending Sentry exceptions before exiting forked process

robinedwards 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_r404593689
 
 

 ##########
 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:
   I think this one still pending @mikeclarke if you dont mind :-)

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services