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 2022/10/14 18:17:35 UTC

[GitHub] [airflow] chenglongyan commented on a diff in pull request #27056: Fix ExternalTaskSensor cant check zipped dag

chenglongyan commented on code in PR #27056:
URL: https://github.com/apache/airflow/pull/27056#discussion_r996019693


##########
airflow/sensors/external_task.py:
##########
@@ -261,7 +262,7 @@ def _check_for_existence(self, session) -> None:
         if not dag_to_wait:
             raise AirflowException(f'The external DAG {self.external_dag_id} does not exist.')
 
-        if not os.path.exists(dag_to_wait.fileloc):
+        if not os.path.exists(correct_maybe_zipped(dag_to_wait.fileloc)):

Review Comment:
   Added.



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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org