Skip to content

feat(transport): Worker eviction#185

Merged
j-g00da merged 1 commit into
mainfrom
j-g00da/fix-workers
Jun 27, 2026
Merged

feat(transport): Worker eviction#185
j-g00da merged 1 commit into
mainfrom
j-g00da/fix-workers

Conversation

@j-g00da

@j-g00da j-g00da commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Adds max worker capacity of 500 to the worker pool,
and an automatic shutdown of idle workers.
Messages that would cause the capacity to be exceeded,
are deferred.

Additionally, ensures that the same worker
is not spawned by two tasks at the same time.

Signed-off-by: Jagoda Ślązak jslazak@jslazak.com

@j-g00da
j-g00da marked this pull request as ready for review June 26, 2026 13:19
@j-g00da
j-g00da requested a review from link2xt June 26, 2026 13:20
Comment thread src/transport/worker.rs
Adds max worker capacity of 500 to the worker pool,
and an automatic shutdown of idle workers.
Messages that would cause the capacity to be exceeded,
are deferred.

Additionally, ensures that the same worker
is not spawned by two tasks at the same time.

Signed-off-by: Jagoda Ślązak <jslazak@jslazak.com>
@j-g00da
j-g00da force-pushed the j-g00da/fix-workers branch from 4f9b55b to b5dc622 Compare June 27, 2026 07:10
@j-g00da j-g00da changed the title fix(transport): Better locking when creating workers feat(transport): Worker eviction Jun 27, 2026
@j-g00da
j-g00da requested a review from link2xt June 27, 2026 07:24
@j-g00da
j-g00da merged commit 4d900ec into main Jun 27, 2026
6 of 7 checks passed
@j-g00da
j-g00da deleted the j-g00da/fix-workers branch June 27, 2026 08:54
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.

2 participants