-
Notifications
You must be signed in to change notification settings - Fork 108
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
Trigger batching dispatcher on success/failure of ensemble #9183
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9183 +/- ##
==========================================
- Coverage 90.74% 90.71% -0.04%
==========================================
Files 352 352
Lines 21937 21939 +2
==========================================
- Hits 19907 19902 -5
- Misses 2030 2037 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
btw, if you want to connect PR with the issue you need to write either Fixes, Resolves and then the issue |
@@ -147,6 +147,8 @@ def set_event_handler(event_types: Set[Type[Event]], func: Any) -> None: | |||
function = event_handler[type(event)] | |||
batch.append((function, event)) | |||
self._events.task_done() | |||
if type(event) in [EnsembleSucceeded, EnsembleFailed]: |
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 made the comment in the issue: #9136 (comment)
This if
would make batching slower for no relevant reason.
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 think this one is not necessary.
Issue
#9136
Approach
Send batch from batching dispatcher immediately when we get EnsembleSucceeded or EnsembleFailed.
git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"'
)When applicable