Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make BaseJobRunner a generic on the job class #31287

Merged
merged 1 commit into from
May 15, 2023

Conversation

uranusjr
Copy link
Member

Turns out the original one was quite close, just need to account for the fact that the variable type needs to be bound of either Job, JobPydantic, or a union of the two (which is a different type technically!)

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label May 15, 2023
@uranusjr uranusjr requested a review from potiuk May 15, 2023 09:31
@potiuk
Copy link
Member

potiuk commented May 15, 2023

AAAH. That explains it ! Love it :)

@potiuk
Copy link
Member

potiuk commented May 15, 2023

🤯 -> the typing system of Python has quite a few pretty gray and dark corners :)

@uranusjr uranusjr merged commit 2b6462b into apache:main May 15, 2023
@uranusjr uranusjr deleted the job-generic branch May 15, 2023 10:21
@eladkal eladkal added this to the Airflow 2.6.2 milestone Jun 8, 2023
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Jun 8, 2023
eladkal pushed a commit that referenced this pull request Jun 8, 2023
eladkal pushed a commit that referenced this pull request Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:Scheduler including HA (high availability) scheduler type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants