Skip to content

Make BaseJobRunner a generic on the job class#31287

Merged
uranusjr merged 1 commit into
apache:mainfrom
astronomer:job-generic
May 15, 2023
Merged

Make BaseJobRunner a generic on the job class#31287
uranusjr merged 1 commit into
apache:mainfrom
astronomer:job-generic

Conversation

@uranusjr

Copy link
Copy Markdown
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!)

@uranusjr uranusjr requested review from XD-DENG, ashb and kaxil as code owners May 15, 2023 09:29
@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

potiuk commented May 15, 2023

Copy link
Copy Markdown
Member

AAAH. That explains it ! Love it :)

@potiuk

potiuk commented May 15, 2023

Copy link
Copy Markdown
Member

🤯 -> 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