Skip to content

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

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#113
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 a7b7461 to ed1fed4 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 ed1fed4 to f1f18f2 Compare April 6, 2026 21:43
@ericmj ericmj merged commit 9dcd53d into main Apr 6, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/run-queue-processing-in-task branch April 6, 2026 21:47
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