Migrate Edge calls for Worker to FastAPI part 3 - Jobs routes#44433
Conversation
6cc299b to
a7df286
Compare
|
I will wait for 1 and 2 to be merged :) |
As internal API is now "gone" I will have a hard time getting #1+#2 merged. As there are some merge conflicts as well I'll focus on PR#3 + #4... But anyway let me resolve the conflicts and integrate the feedback from Kaxil then it might be cleaner already. UPDATE: Okay now I realize that the internal API is gone but all the previous functions are moved to provider package... need to catch-up coming home... |
👀 |
1a0a928 to
2fc3464
Compare
You just merged 2 after I merged 1... so "ball is in your field" now :-D |
There was a problem hiding this comment.
Copilot reviewed 5 out of 11 changed files in this pull request and generated 1 suggestion.
Files not reviewed (6)
- providers/src/airflow/providers/edge/CHANGELOG.rst: Language not supported
- providers/src/airflow/providers/edge/openapi/edge_worker_api_v1.yaml: Language not supported
- providers/src/airflow/providers/edge/cli/api_client.py: Evaluated as low risk
- providers/src/airflow/providers/edge/provider.yaml: Evaluated as low risk
- providers/src/airflow/providers/edge/worker_api/app.py: Evaluated as low risk
- providers/tests/edge/cli/test_edge_command.py: Evaluated as low risk
Comments skipped due to low confidence (1)
providers/src/airflow/providers/edge/cli/edge_command.py:89
- The word 'AIrflow' should be 'Airflow'.
"Error: EdgeWorker is currently broken on Airflow 3/main due to removal of AIP-44, rework for AIP-72."
potiuk
left a comment
There was a problem hiding this comment.
NICE... Way easier to review once 1 and 2 merged :)
2fc3464 to
e30aa57
Compare
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…#44433) * Migrate Edge calls for Worker to FastAPI 3 - Jobs route * Review Feedback * Remove outdated type hints from review feedback * Update providers/src/airflow/providers/edge/worker_api/routes/jobs.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Add missing filter for free concurrency --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Follow-up PR as incremental part of #44311 and #44330
Note: Only the last commit is the relevant change, the first 4 commits are from #44311 and #44330
To prepare EdgeWorker to be independent of AIP-44 Internal API, this PR is the third step in adding/migrating to FastAPI. The calls to "Jobs" API to (1) fetch a job and (2) report job state are now real REST API calls, not using internal API.
I would separate the other internal API calls to follow-up PRs as this is already quite large. Especially cause for ongoing Airflow 2.10 Connexion API + Swagger manually need to be generated whereas the main workstream for Airflow 3 uses FastAPI.