-
Notifications
You must be signed in to change notification settings - Fork 38
Handle gRPC failure #40
Comments
It's not that simple..... When running the integration tests on the proposed change, I notice these cases, which you do not want to retry:
Proposed behaviour
|
With 2.3.0 of the zeebe-node client, my worker container would blow up if it started before the broker (which it always did, because Node vs Java), and I had to use This was an issue for me, even with Here is what it looks like now, using zeebe-node-next with PR #41 :
|
If the broker is not up when workers start, then the first call to a ZBClient method will throw an unhandled exception, which can crash an entire process if it's not handled in the application.
Here is an example of handling it at the application layer, when waiting - for example - for a broker container to start:
This should be wrapped into the ZBClient class, to remove the responsibility for handling this from the application.
The text was updated successfully, but these errors were encountered: