Coder Social home page Coder Social logo

Comments (11)

biryukovsky avatar biryukovsky commented on August 17, 2024 2

I had a similar problem. In my case the exception message was like "airflow.exception.SerializedDagNoFound: DAG 'None' not found in serialized_dag table". Fixed with following query in airflow database:
DELETE FROM dag_run WHERE dag_id IS NULL;

from airflow-exporter.

elephantum avatar elephantum commented on August 17, 2024

Interesting, thanks for reporting.

from airflow-exporter.

sawaca96 avatar sawaca96 commented on August 17, 2024

@nvn01234
I experienced the same thing.

In my case, the error occurred if it disappeared from UI due to git-sync but remained in the DB

you solve this error just delete dag from DB. Use airflow cli airflow dags delete <dag_id> -y

from airflow-exporter.

elephantum avatar elephantum commented on August 17, 2024

Hi, everyone!

If anyone would have time to create a PR that fixes it, I would be grateful. Fix should not be too complex.

from airflow-exporter.

sawaca96 avatar sawaca96 commented on August 17, 2024

@elephantum How should I fix it?
just fix it to ignore airflow.exceptions.SerializedDagNotFound ?

from airflow-exporter.

elephantum avatar elephantum commented on August 17, 2024

I would suggest altering sqlalchemy query for this case, most probably simple join with dag table would be enough.

I.e. filter out such tasks and dags that do not have corresponding dag in DB.

from airflow-exporter.

sawaca96 avatar sawaca96 commented on August 17, 2024

@elephantum #105 I create PR
Thank you for the opportunity.😁😁

from airflow-exporter.

CyberHippo avatar CyberHippo commented on August 17, 2024

Experienced it as well.

from airflow-exporter.

baryluk avatar baryluk commented on August 17, 2024

Same issue here, with airflow-exporter 1.5.1,

and airflow 1.10.15, (where for some very old dags we do not have serialized_dag entries, as we only enabled that option few weeks ago in preparation for the Airflow 2.x update), but it will be an issue when I upgrade to 2.x, because we will be preserving full history.

I have a single dag in dag table, that is no longer available. Looking at postgresql database it has is_paused false, is_subdag false, is_active false.

from airflow-exporter.

elephantum avatar elephantum commented on August 17, 2024

Fixed in v1.5.2

from airflow-exporter.

baryluk avatar baryluk commented on August 17, 2024

Excellent, it works. Thanks @sawaca96 and @elephantum

from airflow-exporter.

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.