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

Fixes #25842: scoreService and scoreServiceManager are not initialized where they should #6007

Open
wants to merge 3 commits into
base: branches/rudder/8.1
Choose a base branch
from

Conversation

fanf
Copy link
Member

@fanf fanf commented Nov 10, 2024

https://issues.rudder.io/issues/25842

General ideas and hypothesis:

  • we want to reduce the number of runNow (each one create more risk that there is a chain of .runNow/.attemp/.runNow with the potential for deadlock)
  • it's easier to remember to init a service near where it is declared
  • we want to keep all service init at the same place if possible

I added a (mutable) buffer in our def init method, into which we can add ZIO effect related to services init, and runNow it (in parallel, effect result discarded) at the end of the method.
I used the same construct for post-plugin init.

…tialized where they should

Fixes #25842: scoreService and scoreServiceManager are not initialized where they should
@fanf
Copy link
Member Author

fanf commented Nov 10, 2024

PR updated with a new commit

…not initialized where they should

Fixes #25842: scoreService and scoreServiceManager are not initialized where they should
@fanf
Copy link
Member Author

fanf commented Nov 18, 2024

PR updated with a new commit

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.

1 participant