Skip to content

Pull scheduler logic out of asset classes #47378

@uranusjr

Description

@uranusjr

Body

The SDK should contain no database-related code, but currently the scheduler uses the evaluate function to check if an asset dependency is “ready”, which involves hitting the database in some cases. We should move it into Airflow core.

The best way to do this is probably similar to how DAGs are turned into SerializedDag. We should create a class in core Airflow to represent BaseAsset subclasses, and put logic there.

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions