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 2019/10/14 13:21:40 UTC

[GitHub] [airflow] rajatsri28 commented on a change in pull request #6330: AIRFLOW-5653 Log caught AirflowSkipException in task instance log

rajatsri28 commented on a change in pull request #6330: AIRFLOW-5653 Log caught AirflowSkipException in task instance log
URL: https://github.com/apache/airflow/pull/6330#discussion_r334478982
 
 

 ##########
 File path: airflow/models/taskinstance.py
 ##########
 @@ -950,7 +950,10 @@ def signal_handler(signum, frame):
                 Stats.incr('ti_successes')
             self.refresh_from_db(lock_for_update=True)
             self.state = State.SUCCESS
-        except AirflowSkipException:
+        except AirflowSkipException as e:
+            # log only if exception has any arguments to prevent log flooding
+            if e.args:
+                self.log.warning(e)
 
 Review comment:
   Agreed. Since task skipping is not so much of a warning in airflow. I have made the change. Thanks for the tip.

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