Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ nix develop --command bash -c "cd frontend && npm run test:e2e"

Claude Code の sandbox は `~/.cache/nix/fetcher-locks/*.lock` への書き込みを拒否する。`make lint-backend` / `make test-backend` を sandbox 有効で実行すると次のエラーになる:

```
```text
error: opening lock file "~/.cache/nix/fetcher-locks/...lock": Operation not permitted
```

Expand Down
7 changes: 4 additions & 3 deletions backend/app/services/tasks/handlers/blog_summarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ async def run(self, db: Session, payload: dict) -> None:

user_id = payload.get("user_id")
if not user_id:
logger.error("ペイロードに user_id がありません", extra={"payload_keys": list(payload.keys())})
return
message = "ペイロードに user_id がありません"
logger.error(message, extra={"payload_keys": list(payload.keys())})
raise NonRetryableError(f"{message} (payload_keys={list(payload.keys())})")
cache = self.get_record(db, payload)
if not cache:
message = "ブログサマリキャッシュが見つかりません"
Expand Down Expand Up @@ -81,7 +82,7 @@ async def run(self, db: Session, payload: dict) -> None:
summary = await summarize_blog_articles(articles_data)
if not summary:
cache.status = "dead_letter"
cache.error_message = "LLM処理が利用できません"
cache.error_message = "要約の生成に失敗しました"
cache.completed_at = _now()
db.commit()
return
Expand Down
Loading
Loading