Skip to content

Run queue message processing in short-lived task processes#92

Merged
ericmj merged 1 commit intomainfrom
ericmj/run-queue-processing-in-task
Apr 6, 2026
Merged

Run queue message processing in short-lived task processes#92
ericmj merged 1 commit intomainfrom
ericmj/run-queue-processing-in-task

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Apr 6, 2026

Broadway processors are long-lived, so their heap memory accumulates across messages. By running each message's work in a task under Task.Supervisor, the task's entire heap is freed immediately on exit and TmpDir cleanup triggers automatically via the :DOWN monitor.

@ericmj ericmj force-pushed the ericmj/run-queue-processing-in-task branch from 7524c60 to f7e210a Compare April 6, 2026 21:39
Broadway processors are long-lived, so their heap memory accumulates
across messages. By running each message's work in a task under
Task.Supervisor, the task's entire heap is freed immediately on exit
and TmpDir cleanup triggers automatically via the :DOWN monitor.
@ericmj ericmj force-pushed the ericmj/run-queue-processing-in-task branch from f7e210a to 7fcaa0e Compare April 6, 2026 21:44
@ericmj ericmj merged commit 00db00a into main Apr 6, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/run-queue-processing-in-task branch April 6, 2026 21:48
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