Conversation
--max-instances=0は無効な値(正の整数が必要)のためエラーになっていた。 代わりにgcloud run services deleteでサービスを削除し、 Deployステップで再作成されるようにした。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
WalkthroughCloud BuildのステージングパイプラインでCloud Runサービスの処理を「停止」から「削除」に変更します。メッセージと待機時間を更新し、存在確認ロジックを調整してサービス削除の動作に合わせます。 Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3分 Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
--max-instances=0をgcloud run services deleteに変更問題
--max-instances=0は無効な値で、Cloud Runのautoscaling.knative.dev/maxScaleアノテーションは正の整数が必要だった。解決策
gcloud run services deleteでサービスを完全に削除し、Deployステップで再作成されるようにした。これにより、DB接続が確実に切断される。
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.