Skip to content

Ensured that TaskProcessor used in connection pools clears pending tasks#186

Open
oskardudycz wants to merge 5 commits into
mainfrom
task_processor_deadlocks
Open

Ensured that TaskProcessor used in connection pools clears pending tasks#186
oskardudycz wants to merge 5 commits into
mainfrom
task_processor_deadlocks

Conversation

@oskardudycz
Copy link
Copy Markdown
Contributor

TaskProcessor.stop() cleared its queue with this.queue.length = 0 without rejecting the captured promises.

Anyone waiting on a queued task hung for ~24 days until the fallback deadline fired. Triggered in Emmett when one consumer's pool.close() orphaned the other multiple consumers' pending writes.

@oskardudycz oskardudycz added this to the 0.17.0 milestone May 28, 2026
@oskardudycz oskardudycz force-pushed the task_processor_deadlocks branch from 2646978 to 5bf6e90 Compare May 28, 2026 08:02
TaskProcessor.stop() cleared its queue with this.queue.length = 0 without rejecting the captured promises. Anyone waiting on a queued task hung for ~24 days until the fallback deadline fired. Triggered in emmett when one consumer's pool.close() orphaned the other 9 consumers' pending writes.
@oskardudycz oskardudycz force-pushed the task_processor_deadlocks branch from 5bf6e90 to 8b70f9f Compare May 28, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant