Start regular edge event process after sync completed
This commit is contained in:
parent
abbf791987
commit
4890976b9f
@ -20,6 +20,7 @@ import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Lazy;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.thingsboard.server.cluster.TbClusterService;
|
||||
import org.thingsboard.server.dao.asset.AssetService;
|
||||
import org.thingsboard.server.dao.attributes.AttributesService;
|
||||
import org.thingsboard.server.dao.dashboard.DashboardService;
|
||||
@ -61,6 +62,9 @@ import org.thingsboard.server.service.executors.GrpcCallbackExecutorService;
|
||||
@Lazy
|
||||
public class EdgeContextComponent {
|
||||
|
||||
@Autowired
|
||||
private TbClusterService clusterService;
|
||||
|
||||
@Autowired
|
||||
private EdgeService edgeService;
|
||||
|
||||
|
||||
@ -211,6 +211,7 @@ public final class EdgeGrpcSession implements Closeable {
|
||||
@Override
|
||||
public void onSuccess(Void result) {
|
||||
syncCompleted = true;
|
||||
ctx.getClusterService().onEdgeEventUpdate(edge.getTenantId(), edge.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user