Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

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

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

ericmj merged 1 commit into
mainfrom
ericmj/run-queue-processing-in-task

Conversation

@ericmj

@ericmj ericmj commented Apr 6, 2026

Copy link
Copy Markdown
Member

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant