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

Have fm_runner's event reporter shutdown gracefully #9365

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

jonathan-eq
Copy link
Contributor

@jonathan-eq jonathan-eq commented Nov 27, 2024

Issue
Resolves #9041

Approach
This PR makes the forward model runner shut down more gracefully, and fixes a bug where FMs would live on after terminate experiment had been pressed.

(Screenshot of new behavior in GUI if applicable)

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@jonathan-eq jonathan-eq added release-notes:bug-fix Automatically categorise as bug fix in release notes release-notes:improvement Automatically categorise as improvement in release notes labels Nov 27, 2024
@jonathan-eq jonathan-eq force-pushed the main5 branch 3 times, most recently from 14089e2 to 0834495 Compare November 27, 2024 13:21
Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

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

Very nice @jonathan-eq ! Could you squash the commits as I think they are dependent regardless.

This commit fixes the issue where the logs would be spammed with errors
related to the websocket client being forcefully shut down before
closing the connection.
It also fixes the issue where the fm_runner was not killing the running
forward models when sigterm was signaled
@jonathan-eq jonathan-eq merged commit 9a89ae3 into equinor:main Nov 27, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:bug-fix Automatically categorise as bug fix in release notes release-notes:improvement Automatically categorise as improvement in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A lot of errors are displayed when choosing to terminate experiment
2 participants