precompile: Support detaching and monitoring etc.#4602
Merged
IanButterworth merged 1 commit intoJuliaLang:masterfrom Apr 1, 2026
Merged
precompile: Support detaching and monitoring etc.#4602IanButterworth merged 1 commit intoJuliaLang:masterfrom
IanButterworth merged 1 commit intoJuliaLang:masterfrom
Conversation
fca890a to
bc59931
Compare
vchuravy
reviewed
Jan 25, 2026
bc59931 to
c03f2d1
Compare
Member
Author
|
@vchuravy this isn't ready for code review. It's just a demo of the interface. Sorry, I should've been clearer up top. |
d057842 to
078da27
Compare
Member
Author
|
Started moving the code over to Base JuliaLang/julia@master...IanButterworth:julia:ib/background_precompile |
efe037a to
850e5d7
Compare
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 6, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 7, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 7, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
Member
|
Will close #4359 |
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 8, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 8, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
IanButterworth
added a commit
to IanButterworth/julia
that referenced
this pull request
Feb 8, 2026
…ontrols
Run package precompilation in a background task, with a monitor task that
streams output and handles keyboard input. This enables users to detach
from precompilation (letting it continue silently) and reattach later.
Keyboard controls during precompilation:
- 'c' cancels all subprocesses (SIGKILL)
- 'd' detaches from monitoring (when detachable=true)
- 'i' sends a profiling signal (SIGINFO/SIGUSR1) for profile peek
- Ctrl-C interrupts subprocesses (SIGINT) and shows output
Signal broadcasting uses per-subprocess Channel{Int32} registered in
BACKGROUND_PRECOMPILE.signal_channels. The keyboard handler broadcasts
to all channels, and per-process tasks forward signals via kill().
Adds a detachable::Bool keyword to precompilepkgs, and background control
functions: monitor_background_precompile, stop_background_precompile,
is_precompiling_in_background.
The Pkg.jl side of this change is in JuliaLang/Pkg.jl#4602.
Co-Authored-By: Claude <noreply@anthropic.com>
e8ee7e0 to
1f04fd4
Compare
Co-Authored-By: Claude <noreply@anthropic.com>
1f04fd4 to
e1e9cab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See JuliaLang/julia#60943
Closes #4359