[ 
https://issues.apache.org/jira/browse/AIRFLOW-3932?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796184#comment-16796184
 ] 

ASF subversion and git services commented on AIRFLOW-3932:
----------------------------------------------------------

Commit 229509939e7999fdb498e2a2d6de2509c28df358 in airflow's branch 
refs/heads/v1-10-stable from Joshua Carp
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=2295099 ]

[AIRFLOW-3932] Update unit tests and documentation for safe mode flag. (#4760)



> Optionally skip dag discovery heuristic
> ---------------------------------------
>
>                 Key: AIRFLOW-3932
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3932
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Josh Carp
>            Assignee: Josh Carp
>            Priority: Trivial
>             Fix For: 1.10.3
>
>
> When discovering dags, airflow ignores any files that don't include the 
> strings "DAG" and "airflow". This is a reasonable heuristic but isn't always 
> correct–for example, a file might import a function that creates dags with a 
> name like "create_dag". I think this heuristic does more harm than good, and 
> that discovery should be controlled via .airflowignore rather than string 
> matching on file contents. But to preserve backwards compatibility, I propose 
> adding a configuration flag to use the discovery heuristic that defaults to 
> `True`.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to