dnskr commented on issue #9722:
URL: https://github.com/apache/airflow/issues/9722#issuecomment-824746001


   Thanks for the reply @potiuk I'm sure that there are no issues with 
permissions.
   The reason of the problem is how airflow imports DAGs and modules. Looks 
like it's a race between git-sync and scheduler containers.
   I have added delay to scheduler container 
[here](https://github.com/apache/airflow/blob/master/chart/templates/scheduler/scheduler-deployment.yaml#L113)
 and it solved the issue
   ```
   args: ["bash", "-c", "sleep 60 && exec airflow scheduler"]
   ```
   Of course it is very dirty hack and the issue should be fixed somehow else, 
for example by adding git-sync container to initContainers.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to