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

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

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

[AIRFLOW-3932] Optionally skip dag discovery heuristic. (#4746)


> 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