There's no way that I know of to tell git-sync to ignore files, but you can 
tell Airflow to ignore files/folders

http://airflow.apache.org/docs/stable/concepts.html#airflowignore
Note: the format of those patterns are different to .gitignore you might be 
familiar with (git uses globs, Airflow uses regexes)
You can place a .airflowignore in the dagsfolder or any sub-folder under it. I 
think that the pattern is always the relative path from the dags folder, (so 
becareful about anchoring anything with ^)
-ash
On May 25 2020, at 3:58 pm, Lior Harel <[email protected]> wrote:
> Hello,
> When using the git sync option for DAGs is there a way to sync only a 
> subfolder? or tell airflow to ignore certain folders?
> The problem with syncing the entire repository is that:
> a. many of the files/folders aren't needed for production run (I can live 
> with that)
> b. airflow find DAGs in the test folder and lists them, these are test DAGs 
> and I wouldn't want them to show in the UI
>
> Any idea how to resolve this?
>
> Thanks

Reply via email to