added check for cf actor
This commit is contained in:
parent
2c4346b993
commit
cfc5a1f9d5
@ -99,7 +99,6 @@ public class TenantActor extends RuleChainManagerActor {
|
|||||||
() -> true);
|
() -> true);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.info("Failed to init CF Actor.", e);
|
log.info("Failed to init CF Actor.", e);
|
||||||
cantFindTenant = true;
|
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (getApiUsageState().isReExecEnabled()) {
|
if (getApiUsageState().isReExecEnabled()) {
|
||||||
@ -190,6 +189,10 @@ public class TenantActor extends RuleChainManagerActor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void onToCalculatedFieldSystemActorMsg(ToCalculatedFieldSystemMsg msg, boolean priority) {
|
private void onToCalculatedFieldSystemActorMsg(ToCalculatedFieldSystemMsg msg, boolean priority) {
|
||||||
|
if (cfActor == null) {
|
||||||
|
log.warn("[{}] CF Actor is not initialized.", tenantId);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (priority) {
|
if (priority) {
|
||||||
cfActor.tellWithHighPriority(msg);
|
cfActor.tellWithHighPriority(msg);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user