Repository navigation
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.
变更
Job 的数据库状态轮询与 handler 完成在同一层等待。轮询等连接或查询结果时,Worker 仍能看到 handler 完成和本地取消。计时器与 handler 同时就绪时,用单调时钟记录的完成时刻判断是否超时。
验证
9f75cbb,候选通过 9 个时序场景。覆盖池连接延迟、成功、失败、实际超时、持久取消、本地取消、撤回 handler 和停机。running,释放清理后核对最终状态和持久 checkpoint。cargo fmt --all -- --check与锁定的inkcre-core构建通过。timed_out,候选两个场景均为finished。旧版对照复用了与远端基线源码相同的 Worker 缓存产物。仓库完整 CI 已通过。交付
影响 Rust Core 中的 Job Worker。变更局限于事件等待与完成判定,共享状态和数据库格式沿用现有合同。回退可撤销此 PR。OpenAPI PATCH 的 #1 为独立改动。