mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-22 08:38:13 +02:00
feat: add logs in campaigns for failure or pausing (#265)
* feat: add logs in campaigns on failure * chore: bump pipecat * chore: update format.sh * chore: fix github workflow * fix: fix formatting errors
This commit is contained in:
parent
abfb678b4d
commit
d4b6afb020
77 changed files with 1001 additions and 245 deletions
|
|
@ -683,6 +683,16 @@ class CampaignModel(Base):
|
|||
JSON, nullable=False, default=dict, server_default=text("'{}'::json")
|
||||
)
|
||||
|
||||
# Append-only timestamped log entries for state transitions, failures,
|
||||
# and circuit-breaker events. Surfaced in the UI so operators can see
|
||||
# why a campaign moved to paused/failed without digging through logs.
|
||||
logs = Column(
|
||||
JSON,
|
||||
nullable=False,
|
||||
default=list,
|
||||
server_default=text("'[]'::json"),
|
||||
)
|
||||
|
||||
# Timestamps
|
||||
created_at = Column(DateTime(timezone=True), default=lambda: datetime.now(UTC))
|
||||
started_at = Column(DateTime(timezone=True), nullable=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue