|
|
@@ -38,18 +38,18 @@ class CheckCommand():
|
|
|
def check_pick_command(self, msg):
|
|
|
pick = message.park_table()
|
|
|
tf.Parse(msg, pick)
|
|
|
- unit_id = pick.unit_id
|
|
|
if pick.primary_key is None:
|
|
|
pick.statu.execute_statu = message.eError
|
|
|
pick.statu.statu_description = " 唯一码不能为空!"
|
|
|
return tf.MessageToString(pick, as_utf8=True)
|
|
|
- results = self.check_dispatch_node_statu(unit_id)
|
|
|
- if results is not True:
|
|
|
- pick.statu.execute_statu = message.eError
|
|
|
- pick.statu.statu_description = " 调度状态错误!"
|
|
|
- return tf.MessageToString(pick, as_utf8=True)
|
|
|
return tf.MessageToString(pick, as_utf8=True)
|
|
|
|
|
|
+ # results = self.check_dispatch_node_statu(unit_id)
|
|
|
+ # if results is not True:
|
|
|
+ # pick.statu.execute_statu = message.eError
|
|
|
+ # pick.statu.statu_description = " 调度状态错误!"
|
|
|
+ # return tf.MessageToString(pick, as_utf8=True)
|
|
|
+
|
|
|
def check_measure_statu(self, key):
|
|
|
if g_rabbitmq[key].statu is not None and g_rabbitmq[key].timeout() is False:
|
|
|
# if 0.85 > self.measure_info[index].theta or self.measure_info[index].theta> 0.95:
|