Skip to content
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

Control MonitorStage output with the log-level #659

Merged

Conversation

dagardner-nv
Copy link
Contributor

@dagardner-nv dagardner-nv commented Jan 31, 2023

  • Add new log_level constructor argument to MonitorStage
  • MonitorStage only adds itself to the MRC pipeline if the morpheus.stages.general.monitor_stage logger is configured at or below log_level

Allows pipeline authors to control the inclusion of progress output via the Morpheus logger. By default monitor stage output will only be present for INFO level and below.

Marking this as a breaking change for pipelines authors who expect to see monitor stage output when configuring Morpheus with WARNING level and higher.

Requires #676 to be merged, and forward-merged into 23.03 first.

fixes #553

@dagardner-nv dagardner-nv added non-breaking Non-breaking change improvement Improvement to existing functionality 3 - Ready for Review labels Jan 31, 2023
@dagardner-nv dagardner-nv requested a review from a team as a code owner January 31, 2023 23:24
@dagardner-nv dagardner-nv added breaking Breaking change and removed non-breaking Non-breaking change labels Jan 31, 2023
Copy link
Contributor

@mdemoret-nv mdemoret-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merge once comments are addressed

morpheus/stages/general/monitor_stage.py Outdated Show resolved Hide resolved
morpheus/stages/general/monitor_stage.py Outdated Show resolved Hide resolved
morpheus/stages/general/monitor_stage.py Outdated Show resolved Hide resolved
@dagardner-nv
Copy link
Contributor Author

/merge

@ghost ghost merged commit 8ca81fd into nv-morpheus:branch-23.03 Feb 14, 2023
jjacobelli pushed a commit to jjacobelli/Morpheus that referenced this pull request Mar 7, 2023
* Add new `log_level` constructor argument to `MonitorStage`
* `MonitorStage` only adds itself to the MRC pipeline if the `morpheus.stages.general.monitor_stage` logger is configured at or below `log_level`

Allows pipeline authors to control the inclusion of progress output via the Morpheus logger. By default monitor stage output will only be present for `INFO` level and below.

Marking this as a breaking change for pipelines authors who expect to see monitor stage output when configuring Morpheus with `WARNING` level and higher.

Requires nv-morpheus#676 to be merged, and forward-merged into 23.03 first.

fixes nv-morpheus#553

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: nv-morpheus#659
rapids-bot bot pushed a commit that referenced this pull request Apr 24, 2024
* PR #659 inadvertently excluded the monitor stage from several of the end-to-end pipeline tests.
* Adds an environment variable `MORPHEUS_MONITOR_ALWAYS_ENABLED` which when set, will force the monitor stage to always be enabled.
* Adds an auto-use fixture `monitor_stage_always_enabled` which ensures the environment variable is set & present. 

Requires nv-morpheus/MRC#473 to be merged first

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md).
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Christopher Harris (https://github.com/cwharris)
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #1629
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Breaking change improvement Improvement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA]: Control MonitorStage output with the log-level
2 participants