fix: auto-fix code issues (cron)
- 修复未定义名称 (F821): 添加缺失的导入 - ExportEntity, ExportRelation, ExportTranscript - WorkflowManager, PluginManager, OpsManager - urllib.parse - 修复裸异常捕获: except: → except Exception: - 删除 __pycache__ 缓存文件 - 格式化代码 (PEP8) 自动化修复: 23个问题 剩余需手动处理: 104个行长度问题 (E501)
This commit is contained in:
@@ -139,6 +139,7 @@ class ShardInfo:
|
||||
created_at: str = ""
|
||||
last_accessed: str = ""
|
||||
|
||||
|
||||
# ==================== Redis 缓存层 ====================
|
||||
|
||||
|
||||
@@ -598,6 +599,7 @@ class CacheManager:
|
||||
|
||||
return count
|
||||
|
||||
|
||||
# ==================== 数据库分片 ====================
|
||||
|
||||
|
||||
@@ -900,6 +902,7 @@ class DatabaseSharding:
|
||||
"message": "Rebalancing analysis completed",
|
||||
}
|
||||
|
||||
|
||||
# ==================== 异步任务队列 ====================
|
||||
|
||||
|
||||
@@ -1284,6 +1287,7 @@ class TaskQueue:
|
||||
"backend": "celery" if self.use_celery else "memory",
|
||||
}
|
||||
|
||||
|
||||
# ==================== 性能监控 ====================
|
||||
|
||||
|
||||
@@ -1603,6 +1607,7 @@ class PerformanceMonitor:
|
||||
|
||||
return deleted
|
||||
|
||||
|
||||
# ==================== 性能装饰器 ====================
|
||||
|
||||
|
||||
@@ -1678,6 +1683,7 @@ def monitored(monitor: PerformanceMonitor, metric_type: str, endpoint: str | Non
|
||||
|
||||
return decorator
|
||||
|
||||
|
||||
# ==================== 性能管理器 ====================
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user