Skip to content

Clean redundant Webserver configs #49896

Description

@kaxil

We replaced Websever with API server serving static JS in Airflow 3.0 and hence removed lot of Webserver configuration. However, the following configuration still exists, and I think most, if not al,l can be nuked

Activity

  1. added theissue type on Apr 28, 2025
  2. pierrejeambrun commented on May 5, 2025

    @pierrejeambrun
    Member

    Some of them are still used and more complicated to remove/migrate, I'll do them in separate PRs. (part are fab provider, part is core etc.)

  3. pierrejeambrun commented on May 19, 2025

    @pierrejeambrun
    Member

    @kaxil I just realized that now that we moved some pieces from webserver to api. (targetted for 3.1.0), people upgrading from 3.0.0 to 3.1.0 will need to config lint again because otherwise their config will not have that api section that core is now looking for, and will most likely crash.

    Is that acceptable, what do you think is the best way. (I know this isn't great, but I couldn't find a better option, or we still look for webserver section but this will emit deprecation warning, until AF4...)

  4. pierrejeambrun commented on May 19, 2025

    @pierrejeambrun
    Member
  5. potiuk commented on May 19, 2025

    @potiuk
    Member

    Is that acceptable, what do you think is the best way. (I know this isn't great, but I couldn't find a better option, or we still look for webserver section but this will emit deprecation warning, until AF4...)

    Yes. We should deprecate those.

  6. pierrejeambrun commented on May 19, 2025

    @pierrejeambrun
    Member

    Yes. We should deprecate those.

    So core should still be looking for webserver.my_config (old location) ?

    What about configs moved to providers, is that the same, provider should still look for webserver even if it's expected to be in fab now ? Or since we introduced a lower bound on both side (core => provider, provider => core) we can assume that the config section will be up to date ?

  7. kaxil commented on May 19, 2025

    @kaxil
    MemberAuthor

    Yeah for ones where we do still use those config, we should deprecate them first unfortunately

  8. pierrejeambrun commented on May 19, 2025

    @pierrejeambrun
    Member

    My bad, sorry for the confusion, double checked with Jed, yes those will raise deprecation warnings for core moved in core.

  9. potiuk commented on May 19, 2025

    @potiuk
    Member

    My bad, sorry for the confusion, double checked with Jed, yes those will raise deprecation warnings for core moved in core.

    Yeah. Core to Core is straightforward - > core to fab requires bumping min version(s), really - that's the simplest way, another option is to add a code in fab provider to manually fallback to the old webserver settings with deprecations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

affected_version:3.0Issues Reported for 3.0area:webserverWebserver related Issueskind:metaHigh-level information important to the community

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions