Skip to content

Commit 389c5dd

Browse files
authored
Each module should have its own plugins_loaded (#4149)
1 parent 3611045 commit 389c5dd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fastdeploy/plugins/model_register/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# limitations under the License.
1515
"""
1616

17-
from fastdeploy.plugins.utils import load_plugins_by_group, plugins_loaded
17+
from fastdeploy.plugins.utils import load_plugins_by_group
1818

1919
# make sure one process only loads plugins once
20+
plugins_loaded = False
2021
PLUGINS_GROUP = "fastdeploy.model_register_plugins"
2122

2223

fastdeploy/plugins/reasoning_parser/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
# limitations under the License.
1515
"""
1616

17-
from fastdeploy.plugins.utils import load_plugins_by_group, plugins_loaded
17+
from fastdeploy.plugins.utils import load_plugins_by_group
1818

1919
# make sure one process only loads plugins once
20+
plugins_loaded = False
2021
PLUGINS_GROUP = "fastdeploy.reasoning_parser_plugins"
2122

2223

fastdeploy/plugins/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
from fastdeploy import envs
2020
from fastdeploy.utils import llm_logger as logger
2121

22-
plugins_loaded = False
23-
2422

2523
def load_plugins_by_group(group: str) -> dict[str, Callable[[], Any]]:
2624
import sys

0 commit comments

Comments
 (0)