Facing intermittent issue in DAG #50390
-
I am facing an intermittent issue while I add a new dag file.
but if I rewrite the dag file with no changes the error goes away. im using airflow v2.5.0 I checked all three master nodes have pygments ==2.19.1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Maybe you have some dynamic installation of packages that cause the problem. For example that could have happened if you dynamically installed extra packages after starting the image (which some people do rather than building their own custom images and we strongly advise them to do it instead). |
Beta Was this translation helpful? Give feedback.
-
I have 3 instances which sync the dags every minute from an s3 location. could that be causing this issue? |
Beta Was this translation helpful? Give feedback.
Could be - depend how you do it. If your syncing will DELETE dags to replace them with new ones, and there are periods of time that the dags are missing (even short ones) - yes that might happen. Improve your syncing process in this case so rather than deleting and recreating DAGs you replace them atomically . This is what git-sync does for example - it downloads the dags to folder that it has symbolic link to and after downloading a new copy of DAG folder it swaps the symbolic link to poin to the new directory