Code Monkey home page Code Monkey logo

Comments (4)

saikatharryc avatar saikatharryc commented on May 30, 2024

When it runs from the migration job, it does not populate some of the fields, If I execute into the scheduler, and do an airflow upgradedb it populates the changes, and the scheduler works.
anyone is aware of this issue?

from airflow-chart.

saikatharryc avatar saikatharryc commented on May 30, 2024

Got it,
This happened due to https://github.com/astronomer/airflow-chart/blob/master/templates/run-airflow-migrations.yaml#L60 I did not change, and if do not, then it takes this value: https://github.com/astronomer/airflow-chart/blob/master/values.yaml#L83. In which case, dag_hash does not exist probably.
if I change the default version from 1.10.10-buster to 1.10.12-buster, it worked.

from airflow-chart.

dinigo avatar dinigo commented on May 30, 2024

What was the solution for this issue? I'm experiencing this with airflow image on docker-compose. Should a migration be created to populate this column in the db?

from airflow-chart.

saikatharryc avatar saikatharryc commented on May 30, 2024

What was the solution for this issue? I'm experiencing this with airflow image on docker-compose. Should migration be created to populate this column in the DB?

Short Answer: Yes

replace this: https://github.com/astronomer/airflow-chart/blob/master/values.yaml#L89
with this: {{ template "airflow_image" . }}

the image core version used to run the migration is different (older) in my case than the one that I'm using for the workers and scheduler. in here: https://github.com/astronomer/airflow-chart/blob/master/values.yaml#L87

and that's why it was running the migration but for the older version.
when I have used the same image that I'm deploying for the scheduler and worker in-migration it worked.

from airflow-chart.

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.