Repository navigation
feat: 对齐任务逐次结果与调度语义(第三批) - #13
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.
关联 #10,完成与 surveycore-py 对齐的第三批:批量任务的逐次结果与调度语义。
行为变化
Client.RunResults和包级RunResults,按完成顺序迭代SubmissionResult,尝试编号从 1 开始。单次失败保留结果并继续后续尝试;准备失败或调用方取消通过迭代错误返回。提前退出迭代会取消未完成请求并等待工作线程结束。GET /api/v1/tasks/{id}/results?after=0&limit=200,沿用 SQLite 任务事件日志保存逐次结果,无需数据库迁移,重启后仍可分页读取。完成事件通过Event.Result提供同一结果。failStop继续生效。Run/RunWithEvents的汇总返回形式,存在单次失败时在结束后返回首个错误。同步更新 README、SDK 文档、示例和 OpenAPI。验证
go test ./...go test -race ./...go vet ./...go build ./...GOWORK=off go test ./...(tests/consumer)下一批继续对齐解析元数据与平台差异。