Skip to content

Rename JobRunner modules to *_job_runner and base_job* to job#30302

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:change-module-names-for-job-runners
Apr 10, 2023
Merged

Rename JobRunner modules to *_job_runner and base_job* to job#30302
potiuk merged 1 commit intoapache:mainfrom
potiuk:change-module-names-for-job-runners

Conversation

@potiuk
Copy link
Copy Markdown
Member

@potiuk potiuk commented Mar 25, 2023

The #30255 introduced "JobRunner" concept and decoupled the job logic
from the ORM polymorphic *Job objects. The change was implemented
in the way to minimise the review effort needed, so it avoided renaming
the modules for the runners (from _job to _job_runner).

Also BaseJob lost its "polymorphism" properties so the package, and class name
can be renamed to simply job.

This PR completes the JobRunner concept introduction by applying the
renames.

Closes: #30296


^ 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 newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:CLI area:Scheduler including HA (high availability) scheduler area:webserver Webserver related Issues labels Mar 25, 2023
@potiuk potiuk changed the title Change module names for job runners Rename JobRunner modules to *_job_runner Mar 25, 2023
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Mar 25, 2023

Based on #30255, so please check only the last commit.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed any more - theose are not polymorphic an do not need to be registered at init.

@potiuk potiuk force-pushed the change-module-names-for-job-runners branch from dc3e7c9 to 4a18d1c Compare April 10, 2023 09:17
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Apr 10, 2023

Now - this one is pure rename of the modules + claass names to reflect the refactoring from #30255:

  • *_job.py -> *_job_runner.py
  • base_job.py -> job.py
  • BaseJob -> Job
  • BasJobPydantic -> JobPydantic

@potiuk potiuk force-pushed the change-module-names-for-job-runners branch from 4a18d1c to 6bacc03 Compare April 10, 2023 09:22
@potiuk
Copy link
Copy Markdown
Member Author

potiuk commented Apr 10, 2023

This one should be super-easy to review :)

@potiuk potiuk force-pushed the change-module-names-for-job-runners branch from 7e8d971 to d76aa13 Compare April 10, 2023 12:36
@potiuk potiuk force-pushed the change-module-names-for-job-runners branch from d76aa13 to 30cad5e Compare April 10, 2023 12:57
The apache#30255 introduced "JobRunner" concept and decoupled the job logic
from the ORM polymorphic *Job objects. The change was implemented
in the way to minimise the review effort needed, so it avoided renaming
the modules for the runners (from `_job` to `_job_runner`).

Also BaseJob lost its "polymorphism" properties so the package, and class name
can be renamed to simply job.

This PR completes the JobRunner concept introduction by applying the
renames.

Closes: apache#30296
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AIP-44 Airflow Internal API area:API Airflow's REST/HTTP API area:CLI area:Scheduler including HA (high availability) scheduler area:webserver Webserver related Issues changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

No open projects
Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

AIP-44 Rename Job Runner modules

6 participants