Open valeeum opened 2 months ago
Please answer the following questions for yourself before submitting an issue.
When i call this.broker.sendToChannel() in my service started method, i get the following error:
this.broker.sendToChannel()
MoleculerRetryableError: Adapter not yet connected. Skipping publishing
started() { setTimeout(() => { try { this.broker.sendToChannel( `user.events`, { blah: 2 }, ); } catch (error) { this.logger.error({ error }); } }, 1000); },
In the snippet above, waiting 1 second after started is called creates an error. When I wait 10 seconds, i dont get this error.
I am using the latest version of the Redis adapter.
I expect the broker to wait until the connection is made before starting services.
I am experiencing the same behaviour. Did you come up with any solution @valeeum ?
@FlavioF nope, unfortunately not.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Current Behavior
When i call
this.broker.sendToChannel()
in my service started method, i get the following error:MoleculerRetryableError: Adapter not yet connected. Skipping publishing
In the snippet above, waiting 1 second after started is called creates an error. When I wait 10 seconds, i dont get this error.
I am using the latest version of the Redis adapter.
Expected Behavior
I expect the broker to wait until the connection is made before starting services.