MCPcopy Index your code
hub / github.com/dataelement/Clawith / _log_error

Function _log_error

backend/app/services/task_executor.py:149–154  ·  view source on GitHub ↗

Add an error log to the task.

(task_id: uuid.UUID, message: str)

Source from the content-addressed store, hash-verified

147
148
149async def _log_error(task_id: uuid.UUID, message: str) -> None:
150 """Add an error log to the task."""
151 logger.error(f"[TaskExec] Error for {task_id}: {message}")
152 async with async_session() as db:
153 db.add(TaskLog(task_id=task_id, content=f"❌ {message}"))
154 await db.commit()
155
156
157async def _restore_supervision_status(task_id: uuid.UUID) -> None:

Callers 1

execute_taskFunction · 0.85

Calls 3

TaskLogClass · 0.90
addMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected