Code Monkey home page Code Monkey logo

Comments (3)

VfFlash avatar VfFlash commented on May 29, 2024

Sry that I labeled my question as a bug - I didn't know how else to get in contact with you.

from airflow-code-editor.

josedev-union avatar josedev-union commented on May 29, 2024

I experienced the same issue and figured out what the problem is.
This code editor stores DAG files in airflow-webserver. Airflow helm charts for airflowVersion > 2.0, it deploys airflow-scheduler as a separate pod along side the airflow-webserver, and DAGs files should be stored inside the airflow-scheduler pod. https://github.com/apache/airflow/blob/cae96630e1ddc1d3aae867c41d137e1d1fd7d465/chart/templates/webserver/webserver-deployment.yaml#L271-L283
As long as webserver and schedulerr pods are not using a shared volume for DAGs files, this code editor will not work.

As a workaround, we can create a RWX volume and mount it on both webserver and scheduler pods, at dags file path.

from airflow-code-editor.

josedev-union avatar josedev-union commented on May 29, 2024

Here is my custom values with verion 1.13.1 chart.

dags:
  persistence:
    enabled: true
    size: 1Gi
    storageClassName: azurefile-csi
    accessMode: ReadWriteMany
webserver:
  extraVolumes:
    - name: dags
      persistentVolumeClaim:
        claimName: airflow-staging-dags
  extraVolumeMounts:
    - name: dags
      mountPath: /opt/airflow/dags

You'll need to change the claimName based on your helm release name. My helm release name is airflow-staging.

from airflow-code-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.