Commit 2c8e6d4e authored by Allvey's avatar Allvey

取消二次调度启动

parent 43533cf2
...@@ -64,8 +64,13 @@ class Dispatcher: ...@@ -64,8 +64,13 @@ class Dispatcher:
groups_id = DispatchInfo.get_all_groups_id() groups_id = DispatchInfo.get_all_groups_id()
for group_id in groups_id: for group_id in groups_id:
if group_id not in self.group_list: if group_id not in self.group_list:
try:
group = Group(group_id, self.truck, self.pre_sch, self.excavator, self.dump, self.topo) group = Group(group_id, self.truck, self.pre_sch, self.excavator, self.dump, self.topo)
group.info_update() group.info_update()
except Exception as es:
self.logger.error("分组更新异常")
self.logger.error(es)
continue
if len(group.group_trucks) != 0: if len(group.group_trucks) != 0:
self.group_list[group_id] = group self.group_list[group_id] = group
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment