Skip to content

Bring back serve_logs to be in the core#49031

Merged
kaxil merged 2 commits into
apache:mainfrom
potiuk:bring-back-serve-log-to-core
Apr 10, 2025
Merged

Bring back serve_logs to be in the core#49031
kaxil merged 2 commits into
apache:mainfrom
potiuk:bring-back-serve-log-to-core

Conversation

@potiuk

@potiuk potiuk commented Apr 10, 2025

Copy link
Copy Markdown
Member

The serve_logs has been moved in #48457 to fab provider by mistake. It should remain in the airflow-core. We still depend on flask in the core (but as a next step we can replace it by starlette and unicorn).

Fixes: #49028


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

Comment thread airflow-core/tests/unit/utils/test_serve_logs.py
@potiuk
potiuk force-pushed the bring-back-serve-log-to-core branch 2 times, most recently from e6cc4dd to 50fa3f2 Compare April 10, 2025 04:22
@amoghrajesh

Copy link
Copy Markdown
Contributor

A small static check failure:

diff --git a/providers/celery/README.rst b/providers/celery/README.rst
index d2c6bfc..73789e8 100644
--- a/providers/celery/README.rst
+++ b/providers/celery/README.rst
@@ -75,7 +75,6 @@ You can install such cross-provider dependencies when installing from PyPI. For
 Dependent package                                                                                                       Extra
 ======================================================================================================================  ===================
 `apache-airflow-providers-cncf-kubernetes <https://airflow.apache.org/docs/apache-airflow-providers-cncf-kubernetes>`_  ``cncf.kubernetes``
-`apache-airflow-providers-fab <https://airflow.apache.org/docs/apache-airflow-providers-fab>`_                          ``fab``
 ======================================================================================================================  ===================
 
 The changelog for the provider package can be found in the
diff --git a/providers/celery/pyproject.toml b/providers/celery/pyproject.toml
index 1f002d0..93feb1c 100644
--- a/providers/celery/pyproject.toml
+++ b/providers/celery/pyproject.toml
@@ -82,7 +82,6 @@ dev = [
     "apache-airflow-task-sdk",
     "apache-airflow-devel-common",
     "apache-airflow-providers-cncf-kubernetes",
-    "apache-airflow-providers-fab",
     # Additional devel dependencies (do not remove this line and add extra development dependencies)
 ]

@amoghrajesh amoghrajesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM +1

Comment thread airflow-core/src/airflow/utils/serve_logs.py
potiuk and others added 2 commits April 10, 2025 13:49
The `serve_logs` has been moved in apache#48457 to fab provider by mistake.
It should remain in the airflow-core. We still depend on flask
in the core (but as a next step we can replace it by starlette and
unicorn).

Fixes: apache#49028
@kaxil
kaxil force-pushed the bring-back-serve-log-to-core branch from 50fa3f2 to c61caf6 Compare April 10, 2025 08:23
Comment thread providers/celery/src/airflow/providers/celery/cli/celery_command.py
@kaxil
kaxil merged commit 00aec39 into apache:main Apr 10, 2025
@potiuk

potiuk commented Apr 10, 2025

Copy link
Copy Markdown
Member Author

Thanks @kaxil for the fixup :D

@vincbeck

Copy link
Copy Markdown
Contributor

Thanks!

@potiuk
potiuk deleted the bring-back-serve-log-to-core branch April 21, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

serve_logs cannot depend upon the FAB provider

6 participants