fix: PluginModel.is_active → PluginModel.active (worker crash fix)
This commit is contained in:
+1
-1
@@ -139,7 +139,7 @@ async def on_startup(ctx: dict[str, Any]) -> None:
|
||||
async with async_session() as db:
|
||||
# Global plugins that are marked active
|
||||
result = await db.execute(
|
||||
sa_select(PluginModel.name).where(PluginModel.is_active == True)
|
||||
sa_select(PluginModel.name).where(PluginModel.active == True)
|
||||
)
|
||||
active_plugin_names = {row[0] for row in result}
|
||||
logger.info(f"Worker: {len(active_plugin_names)} active plugins: {active_plugin_names}")
|
||||
|
||||
Reference in New Issue
Block a user