gh-145411: Add runtime (now: unix only) control to Tachyon#149958
Open
maurycy wants to merge 5 commits into
Open
gh-145411: Add runtime (now: unix only) control to Tachyon#149958maurycy wants to merge 5 commits into
unix only) control to Tachyon#149958maurycy wants to merge 5 commits into
Conversation
maurycy
commented
May 17, 2026
| if not timeout: | ||
| return | ||
| if control_server is not None: | ||
| control_server.poll(timeout=timeout) |
| if conn in self._connections: | ||
| self._flush_connection(conn) | ||
|
|
||
| def _dispatch(self, conn, command): |
| if getattr(args, 'control', None) is not None: | ||
| if args.subprocesses: | ||
| parser.error("--control is incompatible with --subprocesses.") | ||
| if os.name == "nt": |
Contributor
Author
There was a problem hiding this comment.
Unfortunately, I don't have access to Windows.
|
|
||
| if getattr(args, 'control', None) is not None: | ||
| if args.subprocesses: | ||
| parser.error("--control is incompatible with --subprocesses.") |
Contributor
Author
There was a problem hiding this comment.
@pablogsal The communication with children would be complex. Maybe we can use signals for enabling and disabling them.
| from .errors import ControlError, ControlURIError | ||
|
|
||
|
|
||
| class ProfilerControl: |
Contributor
Author
There was a problem hiding this comment.
I did not want to inject this into LiveCollector but the direction is clear.
Contributor
Author
unix only) control to Tachyon
maurycy
commented
May 17, 2026
|
|
||
| with _get_child_monitor_context(args, args.pid): | ||
| server = None | ||
| with ExitStack() as stack: |
Contributor
Author
There was a problem hiding this comment.
Keeping should-be-soon-to-be-added signal (SIGUSR1, SIGUSR2 for enabling or disabling?) support in mind.
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.
Only
unix:for starters:Supported commands are
enable,disable,ping,statusandquit. Each command is confirmed with eitherokorerr.Example session:
Closes #149958
profiling.sampling#145411