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/22 11:47:58 UTC

[GitHub] [airflow] curiousjazz77 commented on a change in pull request #8466: [AIRFLOW-5262] Update timeout exception to include dag

curiousjazz77 commented on a change in pull request #8466:
URL: https://github.com/apache/airflow/pull/8466#discussion_r412911222



##########
File path: airflow/sensors/base_sensor_operator.py
##########
@@ -119,9 +119,11 @@ def execute(self, context: Dict) -> Any:
                 # This gives the ability to set up non-blocking AND soft-fail sensors.
                 if self.soft_fail and not context['ti'].is_eligible_to_retry():
                     self._do_skip_downstream_tasks(context)
-                    raise AirflowSkipException('Snap. Time is OUT.')
+                    raise AirflowSkipException(
+                        "Snap. Time is OUT. {d}".format(d=self.dag.dag_id if self.has_dag() else ""))
                 else:
-                    raise AirflowSensorTimeout('Snap. Time is OUT.')
+                    raise AirflowSensorTimeout(
+                        "Snap. Time is OUT. {d}".format(d=self.dag.dag_id if self.has_dag() else ""))

Review comment:
       Sounds good to me.




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