.1963104737692169:b5c9c11471e06bcc4a8a0ad4ae4a7336_69f038e425b12d502f50150f.69f03cbe25b12d502f501602.69f03cbd9c882f7a3ce837e2:Trae CN.T(2026/4/28 12:51:10)#1059
Open
666yuhan666 wants to merge 1 commit into
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.
修复内容
1. 多任务进度展示独立且准确
userJobId独立区分,不串进度。2. 任务失败不影响其他任务,错误信息定位到具体文件
throw Error(data),避免未捕获异常导致其他任务失败;jobId属性,便于定位具体任务;recognize和detect方法中loadImage的错误处理,确保即使在
startJob之前失败也包含jobId。3. 结果顺序与输入顺序一致
Promise.all/allSettled行为,结果顺序与输入顺序一致。修改文件
src/createWorker.js