-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Data] Restructure stdout logging #43360
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Clean up stdout logging
Signed-off-by: Cheng Su <[email protected]>
- Loading branch information
commit 3ecf1ce230d30ad28e8b99cd7782c85b9ebff712
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,10 +107,20 @@ def execute( | |
self._start_time = time.perf_counter() | ||
|
||
if not isinstance(dag, InputDataBuffer): | ||
logger.get_logger().info("Executing DAG %s", dag) | ||
logger.get_logger().info("Execution config: %s", self._options) | ||
stdout_logger = logger.get_logger() | ||
log_path = logger.get_datasets_log_path() | ||
message = ( | ||
"Starting execution of Dataset. Monitor progress on Ray " | ||
"Dashboard." | ||
) | ||
if log_path is not None: | ||
bveeramani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
message += f" Full log is in {log_path}" | ||
stdout_logger.info(message) | ||
stdout_logger.info("Execution plan of Dataset: %s\n", dag) | ||
logger.get_logger(log_to_stdout=False).info( | ||
"Execution config: %s", self._options) | ||
if not self._options.verbose_progress: | ||
logger.get_logger().info( | ||
logger.get_logger(log_to_stdout=False).info( | ||
"Tip: For detailed progress reporting, run " | ||
"`ray.data.DataContext.get_current()." | ||
"execution_options.verbose_progress = True`" | ||
|
@@ -168,7 +178,7 @@ def shutdown(self, execution_completed: bool = True): | |
with self._shutdown_lock: | ||
if not self._execution_started or self._shutdown: | ||
return | ||
logger.get_logger().debug(f"Shutting down {self}.") | ||
logger.get_logger(log_to_stdout=False).debug(f"Shutting down {self}.") | ||
_num_shutdown += 1 | ||
self._shutdown = True | ||
# Give the scheduling loop some time to finish processing. | ||
|
@@ -251,7 +261,7 @@ def _scheduling_loop_step(self, topology: Topology) -> bool: | |
""" | ||
|
||
if DEBUG_TRACE_SCHEDULING: | ||
logger.get_logger().info("Scheduling loop step...") | ||
logger.get_logger(log_to_stdout=False).info("Scheduling loop step...") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one is already behind a debug flag. can keep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Make sense, changed. |
||
|
||
# Note: calling process_completed_tasks() is expensive since it incurs | ||
# ray.wait() overhead, so make sure to allow multiple dispatch per call for | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like the "Monitor progress on Ray Dashboard" part isn't helpful since you already receive a message when Ray initializes instructing you to view the dashboard.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was wanted to emphasize that people should use dashboard for monitoring. I can also remove this, WDYT? @raulchen.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed for now.