Skip to content

fix: continue task queue after submission failures - #145

Open
chenjiahan wants to merge 1 commit into
tinylibs:mainfrom
chenjiahan:chenjiahan/fix-queue-after-submission-error
Open

chenjiahan wants to merge 1 commit into
tinylibs:mainfrom
chenjiahan:chenjiahan/fix-queue-after-submission-error

Conversation

@chenjiahan

Copy link
Copy Markdown

When a queued task contains uncloneable data, postMessage() throws and the task is rejected, but queue processing stops even though the worker is still available. Subsequent tasks can remain pending indefinitely.

This change continues processing the queue after a failed submission and adds a regression test with consecutive uncloneable tasks followed by a valid task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant