You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
User is able to register multiple plugins using same name #55140
@atul-astronomer Could you please confirm the expected behavior? The user should receive an error message when using the same plugin name. I have implemented the changes and shared the screenshot of the output below for your reference
File duplicate_plugin.py
from airflow.plugins_manager import AirflowPlugin
from fastapi import FastAPI
my_app = FastAPI()
@my_app.get("/ping")
async def ping():
return {"message": "pong"}
class MyFastAPIPlugin(AirflowPlugin):
name = "my_fastapi_plugin"
fastapi_apps = [
{
"name": "example_api",
"app": my_app,
"url_prefix": "/example"
}
]
@my_app.get("/hello")
async def ping():
return {"message": "Hello"}
class MyFastAPIPlugin2(AirflowPlugin):
name = "my_fastapi_plugin"
fastapi_apps = [
{
"name": "example_api",
"app": my_app,
"url_prefix": "/example"
}
]
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
I started working on this and will open a PR shortly. Proposed behavior: keep loading subsequent plugins, but explicitly register duplicate plugin names as import errors (instead of only logging a warning), so the conflict is visible and actionable.
Activity
mandeepzemo commentedon Sep 2, 2025
I like to work on this, if open
mandeepzemo commentedon Sep 3, 2025
@atul-astronomer Could you please confirm the expected behavior? The user should receive an error message when using the same plugin name. I have implemented the changes and shared the screenshot of the output below for your reference
File duplicate_plugin.py
Screenshot
13 remaining items
potiuk commentedon Mar 2, 2026
@mandeepzemo We are unassigning you from this issue as part of our updated assignment policy.
This is not meant to discourage your contribution — quite the opposite! You are still very welcome to work on this issue and submit a PR for it. Simply comment that you are working on it and open a PR when ready.
We found that formal assignments were not working well, as they often prevented others from contributing when the assignee was not actively working on the issue.
LarytheLord commentedon Mar 5, 2026
I started working on this and will open a PR shortly. Proposed behavior: keep loading subsequent plugins, but explicitly register duplicate plugin names as import errors (instead of only logging a warning), so the conflict is visible and actionable.