Loading escheduler-common/src/main/java/cn/escheduler/common/queue/TaskQueueZkImpl.java +4 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,10 @@ public class TaskQueueZkImpl extends AbstractZKClient implements ITaskQueue { String taskIdPath = tasksQueuePath + nodeValue; logger.info("consume task {}", taskIdPath); try{ Stat stat = zk.checkExists().forPath(taskIdPath); if(stat != null){ zk.delete().forPath(taskIdPath); } }catch(Exception e){ logger.error(String.format("delete task:%s from zookeeper fail, exception:" ,nodeValue) ,e); } Loading Loading
escheduler-common/src/main/java/cn/escheduler/common/queue/TaskQueueZkImpl.java +4 −1 Original line number Diff line number Diff line Loading @@ -206,7 +206,10 @@ public class TaskQueueZkImpl extends AbstractZKClient implements ITaskQueue { String taskIdPath = tasksQueuePath + nodeValue; logger.info("consume task {}", taskIdPath); try{ Stat stat = zk.checkExists().forPath(taskIdPath); if(stat != null){ zk.delete().forPath(taskIdPath); } }catch(Exception e){ logger.error(String.format("delete task:%s from zookeeper fail, exception:" ,nodeValue) ,e); } Loading