Skip to content

Run diff generation in short-lived task process#148

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

Run diff generation in short-lived task process#148
ericmj merged 1 commit intomainfrom
ericmj/run-diff-processing-in-task

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Apr 6, 2026

LiveView processes are long-lived, so their heap memory accumulates. By running diff generation 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.

LiveView processes are long-lived, so their heap memory accumulates.
By running diff generation 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-diff-processing-in-task branch from e73d401 to 6727716 Compare April 6, 2026 21:40
@ericmj ericmj merged commit 4dcaefa into main Apr 6, 2026
12 checks passed
@ericmj ericmj deleted the ericmj/run-diff-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