Skip to content

Conversation

@kacpermuda
Copy link
Contributor

The check whether or not to schedule a task is now done within schedule_tis method, I think it would be beneficial to extract that logic into a separate public method.

If task is not being scheduled, the listeners are not called for it - and some listeners would like to know that ahead of time, which would be easier if there was a separate method for that decision. Right now the OL listener was re-creating the logic from the Airflow core, but it became complex and hard to keep up with. I'll have another PR for the OpenLineage provider to check for existence of this new is_schedulable_task method, and call it instead.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@ashb ashb changed the title nit: Use separate method to decide if task is to be scheduled Use separate method to decide if task is to be scheduled Oct 21, 2025
@kacpermuda kacpermuda force-pushed the nit-is-schedulable-task branch from 7690a51 to a9d76ea Compare October 21, 2025 14:31
@kacpermuda
Copy link
Contributor Author

@ashb @uranusjr would you guys mind taking another look at this?

@ashb ashb merged commit e506470 into apache:main Oct 28, 2025
112 checks passed
@kacpermuda kacpermuda deleted the nit-is-schedulable-task branch October 28, 2025 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants