RPC Request Node improvement to avoid blocking
This commit is contained in:
parent
ab890e6b1c
commit
480d4d6935
@ -116,7 +116,7 @@ public class TbSendRPCRequestNode implements TbNode {
|
||||
ctx.enqueueForTellNext(next, TbRelationTypes.SUCCESS);
|
||||
} else {
|
||||
TbMsg next = ctx.newMsg(msg.getType(), msg.getOriginator(), msg.getMetaData(), wrap("error", ruleEngineDeviceRpcResponse.getError().get().name()));
|
||||
ctx.enqueueForTellFailure(next, ruleEngineDeviceRpcResponse.getError().get().name());
|
||||
ctx.tellFailure(next, new RuntimeException(ruleEngineDeviceRpcResponse.getError().get().name()));
|
||||
}
|
||||
});
|
||||
ctx.ack(msg);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user