MCPcopy
hub / github.com/dataelement/Clawith / TaskLog

Class TaskLog

backend/app/models/task.py:59–69  ·  view source on GitHub ↗

Progress log entry for a task.

Source from the content-addressed store, hash-verified

57
58
59class TaskLog(Base):
60 """Progress log entry for a task."""
61
62 __tablename__ = "task_logs"
63
64 id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
65 task_id: Mapped[uuid.UUID] = mapped_column(UUID(as_uuid=True), ForeignKey("tasks.id"), nullable=False)
66 content: Mapped[str] = mapped_column(Text, nullable=False)
67 created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), server_default=func.now())
68
69 task: Mapped["Task"] = relationship(back_populates="logs")
70
71
72# Resolve forward refs

Callers 4

execute_taskFunction · 0.90
_log_errorFunction · 0.90
add_task_logFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected