Back to skills
SKILL.md
Documents
ASecurity請求書のPDF生成には最大45秒かかる。同期生成では、その間にAPI接続が切れるため、利用者が生成結果を安定して受け取れない。
- 50 stars
- 0 votes
- 0 copies
- 0 views
- Added November 7, 2026
Works with
Security analysis
100/100Pro scans all 21 files and shows the line behind each finding
npx -y skills add iwasa-kosui/tanteki --skill documents --agent claude-codeAre you the author of Documents?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/iwasa-kosui-documents-eb55ab40)# ADR: 請求書PDF生成を非同期キューで処理する
## 状態
採用
## 判断日
2026-08-20
## 背景
請求書のPDF生成には最大45秒かかる。同期生成では、その間にAPI接続が切れるため、利用者が生成結果を安定して受け取れない。
## 判断
請求書のPDF生成はキューに登録して非同期で処理する。APIは生成完了を待たず、受付IDを返す。利用者は受付IDを使って、PDFの完成を待ってから結果を確認する。
## 不採用案
同期生成は採用しない。最大45秒の処理中にAPI接続が切れるためである。
## 結果
非同期処理により、PDF生成の完了をAPI接続中に待つ必要がなくなる。一方、利用者はPDFが完成するまで待つ必要がある。また、生成処理の再試行回数には上限を設ける必要があるが、その値は未決定である。
この判断はPDF生成の受付と処理方式を定める。受付IDの状態確認方法、完成通知の方法、失敗時の利用者向けの扱いは、このADRでは定めない。
## 未決定事項
- PDF生成の再試行回数の上限Files in this skill
- adr-boundary.1.with_skill.md
- adr-boundary.1.without_skill.md
- adr-boundary.2.with_skill.md
- adr-boundary.2.without_skill.md
- canonical-reference.1.with_skill.md
- canonical-reference.1.without_skill.md
- canonical-reference.2.with_skill.md
- canonical-reference.2.without_skill.md
- comparison-rfc.1.with_skill.md
- comparison-rfc.1.without_skill.md
- comparison-rfc.2.with_skill.md
- comparison-rfc.2.without_skill.md
- design-tradeoff.1.with_skill.md
- design-tradeoff.1.without_skill.md
- design-tradeoff.2.with_skill.md
- design-tradeoff.2.without_skill.md
- incident-record.1.with_skill.md
- incident-record.1.without_skill.md
- incident-record.2.with_skill.md
- incident-record.2.without_skill.md
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.