feat: 重跑计算时添加日志
This commit is contained in:
parent
b6cfaf45ae
commit
20d648957a
|
@ -127,6 +127,7 @@ def cal_mpointstats_duration(start_time: str, end_time: str, m_code_list=[], cal
|
||||||
while current_time <= end_time:
|
while current_time <= end_time:
|
||||||
year, month, day, hour = current_time.year, current_time.month, current_time.day, current_time.hour
|
year, month, day, hour = current_time.year, current_time.month, current_time.day, current_time.hour
|
||||||
cal_mpointstats(0, year, month, day, hour, m_code_list, cal_attrs)
|
cal_mpointstats(0, year, month, day, hour, m_code_list, cal_attrs)
|
||||||
|
myLogger.info("now: {} cal_mpointstats completed: {}".format(datetime.datetime.now(), current_time))
|
||||||
current_time += datetime.timedelta(hours=1)
|
current_time += datetime.timedelta(hours=1)
|
||||||
|
|
||||||
|
|
||||||
|
@ -978,6 +979,7 @@ enm_alarms_list = [
|
||||||
|
|
||||||
["电石渣", "elec_consume_unit", "单位产品分布电耗"],
|
["电石渣", "elec_consume_unit", "单位产品分布电耗"],
|
||||||
["生料工序(二次配料)", "elec_consume_unit", "单位产品分布电耗"],
|
["生料工序(二次配料)", "elec_consume_unit", "单位产品分布电耗"],
|
||||||
|
["原料磨", "elec_consume_unit", "单位产品分布电耗"],
|
||||||
["回转窑", "celec_consume_unit", "单位产品综合电耗"],
|
["回转窑", "celec_consume_unit", "单位产品综合电耗"],
|
||||||
["回转窑", "coal_consume_unit", "单位产品标煤耗"],
|
["回转窑", "coal_consume_unit", "单位产品标煤耗"],
|
||||||
["煤磨", "elec_consume_unit", "单位产品分布电耗"],
|
["煤磨", "elec_consume_unit", "单位产品分布电耗"],
|
||||||
|
|
Loading…
Reference in New Issue