feat: bound news AI concurrency with immediate task refill
Development CI / check-and-build (push) Successful in 2m35s
GitHub Git mirror / mirror (push) Successful in 5s
Development CI / deploy-development (push) Failing after 7s

This commit is contained in:
eezd committed 2026-11-01 12:29:03 +08:00
1 parent f1d060d475
commit cbd2618a20
15 files changed
+603 -129

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ class RiskSettings(Base):
__tablename__ = 'risk_settings'
id: Mapped[int] = mapped_column(primary_key=True)
enabled: Mapped[bool] = mapped_column(Boolean, default=False)
max_concurrency: Mapped[int] = mapped_column(Integer, default=5, server_default='5')
provider_id: Mapped[int | None] = mapped_column(ForeignKey('ai_providers.id'))
model: Mapped[str] = mapped_column(String(128), default='')
second_provider_id: Mapped[int | None] = mapped_column(ForeignKey('ai_providers.id'))