Repository navigation
fix(tasks): distinguish blocked process cleanup from failures - #411
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联 #408。
改动
SIGKILL,等本地 worker 退出后将任务记为cleanup_unconfirmed,并在服务日志里记录 run ID 和 PGID。其他清理失败继续走原有重试流程。CS_CLEANUP_GRACE、CS_CLEANUP_KILL和CS_CLEANUP_GUARD分别配置退出宽限期、SIGKILL 后等待和隔离后端等待,默认各 3 秒。验证
go test ./...,通过。-race检测,覆盖真实的仅僵尸进程组、D 态/proc测试数据和任务状态通知。