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

Stream plugin logging in real time #1659

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Conversation

emlys
Copy link
Member

@emlys emlys commented Oct 22, 2024

Description

Fixes #1654
This allows live logging from the plugin model run to be available to the workbench.

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
  • Updated the user's guide (if needed)
  • Tested the Workbench UI (if relevant)

@emlys emlys changed the base branch from main to feature/plugins October 22, 2024 19:06
@emlys emlys requested a review from dcdenu4 October 22, 2024 20:14
@emlys emlys self-assigned this Oct 22, 2024
@dcdenu4 dcdenu4 requested a review from davemfish October 23, 2024 15:37
@davemfish
Copy link
Contributor

Description

Fixes #1654

Checklist

  • Updated HISTORY.rst and link to any relevant issue (if these changes are user-facing)
  • Updated the user's guide (if needed)
  • Tested the Workbench UI (if relevant)

@emlys , could you add a description to this please, if it's ready to review. I'm confusing the conversations we had about model logging vs. plugin installation logging. Thanks

Copy link
Member

@dcdenu4 dcdenu4 left a comment

Choose a reason for hiding this comment

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

Thanks @emlys !

@@ -94,6 +94,7 @@ export function setupInvestRunHandlers() {
cmdArgs = [
'run',
`--prefix ${settingsStore.get(`plugins.${modelRunName}.env`)}`,
'--live-stream',
Copy link
Member

Choose a reason for hiding this comment

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

Cool, it looks like the mamba command was then capturing standard out/error without the --no-capture-output, --live-stream flag.

@dcdenu4 dcdenu4 merged commit c3a364b into natcap:feature/plugins Oct 24, 2024
28 of 29 checks passed
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.

Plugins: logging not displaying in Workbench until plugin model finishes
3 participants