def init_worker_host_nse_envs(isc_tasks): for it in isc_tasks: isnse.clear_transport_complete_flag_files(*it.k_m_n, it.min_ne, it.max_ne) isnse.create_transport_complete_flag_file(*it.k_m_n, 1) nse_1_path = isnse.get_nse_condition_file_path( *it.k_m_n, 1, it.lp_type, it.is_use_extended_rules) pathlib.Path(nse_1_path).touch() isnse.clear_task_terminate_flag_files(*it.k_m_n)
def init_worker_host_nse_envs(isc_tasks): for it in isc_tasks: k_size = it.k_m_n[0] m_size = it.k_m_n[1] n_size = it.k_m_n[2] isnse.clear_transport_complete_flag_files(k_size, m_size, n_size, it.min_ne, it.max_ne) isnse.create_transport_complete_flag_file(k_size, m_size, n_size, 1) nse_1_path = isnse.get_nse_condition_file_path( k_size, m_size, n_size, 1, it.lp_type, it.is_use_extended_rules) pathlib.Path(nse_1_path).touch()