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:
AutoFix Bot
2026-03-01 21:14:19 +08:00
parent e46c938b40
commit cdf0e80851
53 changed files with 358 additions and 17 deletions

View File

@@ -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
# ==================== 性能管理器 ====================