Code Monkey home page Code Monkey logo

Comments (5)

sicarul avatar sicarul commented on May 26, 2024 1

@bbovenzi Yes, that seems to be the case. My guess is this didn't happen before because Airflow was not drawing datasets in the graph

from airflow.

boring-cyborg avatar boring-cyborg commented on May 26, 2024

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

from airflow.

sicarul avatar sicarul commented on May 26, 2024

If it helps to decipher this problem, i found another case:
image

And in this one, i was able to find old tasks with that name (That task does not exist any more) - However even after deleting the deprecated task instances using the UI, the same error persists in the console, my impression is it seems some "phantom records" are being picked up by the graph library?.

Upon further investigation, it seems this might be caused by the new datasets viz in the graph? Because i see that we get this record that is not present in the datasets UI, because it's from a deprecated table:

    {
      "consuming_dags": [],
      "created_at": "2023-10-16T18:24:02.812802+00:00",
      "extra": {},
      "id": 1081,
      "producing_tasks": [
        {
          "created_at": "2023-10-16T18:24:02.827186+00:00",
          "dag_id": "dbt_pipeline_agg_alb_logs",
          "task_id": "dbt_models.raw_alb_logs_api_requests_categorized",
          "updated_at": "2023-10-16T18:24:02.827200+00:00"
        }
      ],
      "updated_at": "2023-10-16T23:11:20.408211+00:00",
      "uri": "raw_alb_logs_api_requests_categorized"
    }

(This is from /api/v1/datasets?dag_ids=dbt_pipeline_agg_alb_logs)

Is there a way to clean it up? Or to make Airflow ignore this record instead of breaking the graph?

from airflow.

eladkal avatar eladkal commented on May 26, 2024

cc @bbovenzi

from airflow.

bbovenzi avatar bbovenzi commented on May 26, 2024

So this only happens to DAGs with Datasets? And it sounds like it happens when we retrieve datasets but either the dataset or task no longer exists so we're pointing to a nonexistent node. Sounds straightforward enough to add a check for that.

from airflow.

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.