Skip to content

Conversation

@TheMaskedTurtle
Copy link
Contributor

PR Summary

Previously we were propagating ComputationManager coming from lib caller, but in fact it was always called with LocalComputationManager.getDefault() coming from default implementations of apply in AbstractNetworkModification.

Here, in the case of balances-adjustment, we actually want to just run the loadflows in the same thread as the balances-adjustment, and it's the caller responsibility to be set in the proper thread already.

Besides, it will automatically use the contextualised thread in network-modification-server. So, it will as consequence fix the issue where in the server balances-adjustment logs were properly contextualised but not the loadflow ones.

Signed-off-by: Joris Mancini <joris.mancini_externe@rte-france.com>
@TheMaskedTurtle TheMaskedTurtle force-pushed the propagate-context branch 2 times, most recently from 5b26299 to d04d304 Compare December 2, 2025 14:30
Signed-off-by: Joris Mancini <joris.mancini_externe@rte-france.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

@benrejebmoh benrejebmoh self-requested a review December 2, 2025 15:01
@TheMaskedTurtle TheMaskedTurtle merged commit 05b008d into main Dec 2, 2025
4 checks passed
@TheMaskedTurtle TheMaskedTurtle deleted the propagate-context branch December 2, 2025 15:04
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.

3 participants