GitHub user electrical added a comment to the discussion: RuntimeError "Detected recursive loop when walking DAG directory"
I'm getting same kind of error, but I'm not able to find the root cause for this loop Version 3.1.5 Error: ``` RuntimeError: Detected recursive loop when walking DAG directory /opt/airflow/dags: /opt/airflow/dags/.worktrees/292a564de556e743b6f268bb59325b10ec154121 has appeared more than once ``` File structure in the git-sync container: ``` git-sync@airflow-imports-dag-processor-59b468986d-lflg5:/git$ ls -lash total 16K 4.0K drwxrwsrwx 4 root root 4.0K Jan 12 14:54 . 4.0K drwxr-xr-x 1 root root 4.0K Jan 12 14:54 .. 4.0K drwxr-sr-x 8 git-sync root 4.0K Jan 12 15:15 .git 4.0K drwxr-sr-x 3 git-sync root 4.0K Jan 12 14:54 .worktrees 0 lrwxrwxrwx 1 git-sync root 51 Jan 12 14:54 repo -> .worktrees/292a564de556e743b6f268bb59325b10ec154121 ``` I would assume it would only run through the `repo` directory, which should make it impossible to get the duplicate. Unless it runs through everything in this directory including the `.worktrees` directory. Anything i can check? GitHub link: https://github.com/apache/airflow/discussions/40982#discussioncomment-15476652 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
