Support printing backtrace also on SIGTERM
未关闭
还没有人认领这个 Issue。
feature request
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
What is the problem this feature will solve?
PR #29207 added support for --trace-sigint. A similar feature can be very useful for SIGTERM as well. When running on k8s, if liveness probe doesn't respond, the pod is terminated using SIGTERM. It can be very useful to have a trace in case the application is stuck in an infinite loop.
What is the feature you are proposing to solve the problem?
Add --trace-sigterm to print a trace on SIGTERM.
What alternatives have you considered?
No response
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 PR #29207 和现有的 --trace-sigint 实现,以确定相关的信号处理入口点。完成标准是 Node 接受 --trace-sigterm,并在收到 SIGTERM 时打印回溯信息,包括因 liveness-probe 失败而终止的情况。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, nodejs
- 领域
- cli, operating-systems
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100