Refine
This commit is contained in:
@@ -60,9 +60,7 @@ def run_simulation_job() -> None:
|
|||||||
"""
|
"""
|
||||||
# 获取当前时间,并检查是否是整点15分钟
|
# 获取当前时间,并检查是否是整点15分钟
|
||||||
current_time = datetime.now()
|
current_time = datetime.now()
|
||||||
# DingZQ
|
if current_time.minute % 15 == 0:
|
||||||
# if current_time.minute % 15 == 0:
|
|
||||||
if True:
|
|
||||||
print(f"{current_time.strftime('%Y-%m-%d %H:%M:%S')} -- Start simulation task.")
|
print(f"{current_time.strftime('%Y-%m-%d %H:%M:%S')} -- Start simulation task.")
|
||||||
|
|
||||||
# 计算前,获取scada_info中的信息,按照设定的方法修改pg数据库
|
# 计算前,获取scada_info中的信息,按照设定的方法修改pg数据库
|
||||||
|
|||||||
@@ -1010,7 +1010,7 @@ def run_simulation(name: str, simulation_type: str, modify_pattern_start_time: s
|
|||||||
|
|
||||||
close_project(name_c)
|
close_project(name_c)
|
||||||
|
|
||||||
time.sleep(5) # wait 50 seconds
|
time.sleep(5) # wait 5 seconds
|
||||||
|
|
||||||
tmp_file = './temp/simulation.result.out'
|
tmp_file = './temp/simulation.result.out'
|
||||||
shutil.copy(f'./temp/{name_c}.db.opt', tmp_file)
|
shutil.copy(f'./temp/{name_c}.db.opt', tmp_file)
|
||||||
|
|||||||
Reference in New Issue
Block a user