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

Can the dependencies in service.js and the waitForServices function support the ability to pass in a nodeID when passing in the serviceName? #1217

Open
baozhoutao opened this issue Jun 9, 2023 · 4 comments

Comments

@baozhoutao
Copy link

dependencies: [
{ name: "comments", version: 2,  nodeID: 'primary' }
]
@intech
Copy link
Member

intech commented Jun 10, 2023

@baozhoutao This is not possible now. Please submit a PR for this function with check nodeID parameter.

@icebob
Copy link
Member

icebob commented Jun 11, 2023

@baozhoutao What is the use-case for this?

@baozhoutao
Copy link
Author

这样做的用例是什么?
Thanks Reply.
During cluster deployment, Service B requires a dependency on the local instance of Service A.

@valeeum
Copy link
Contributor

valeeum commented Aug 24, 2024

@icebob i have a similar need. sometimes i have parameters that are functions. because they can't be serialized, i ensure that the service is called that is running on same broker. if we have the ability to set the nodeId when calling an action, we should also be able to ensure we can wait until that specific local service is running before starting the service that relies on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants