MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / append_task_log

Function append_task_log

src/database/crud.py:370–382  ·  view source on GitHub ↗

追加任务日志

(db: Session, task_uuid: str, log_message: str)

Source from the content-addressed store, hash-verified

368
369
370def append_task_log(db: Session, task_uuid: str, log_message: str) -> bool:
371 """追加任务日志"""
372 db_task = get_registration_task_by_uuid(db, task_uuid)
373 if not db_task:
374 return False
375
376 if db_task.logs:
377 db_task.logs += f"\n{log_message}"
378 else:
379 db_task.logs = log_message
380
381 db.commit()
382 return True
383
384
385def delete_registration_task(db: Session, task_uuid: str) -> bool:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected