moleculer icon indicating copy to clipboard operation
moleculer copied to clipboard

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

Open baozhoutao opened this issue 2 years ago • 4 comments

dependencies: [
{ name: "comments", version: 2,  nodeID: 'primary' }
]

baozhoutao avatar Jun 09 '23 02:06 baozhoutao

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

intech avatar Jun 10 '23 15:06 intech

@baozhoutao What is the use-case for this?

icebob avatar Jun 11 '23 15:06 icebob

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

baozhoutao avatar Jun 12 '23 01:06 baozhoutao