Skip to content
Snippets Groups Projects
Commit e9643b07 authored by amirpasha's avatar amirpasha
Browse files

Deleting Temp_log file from Resulting Data

parent e302a6ee
No related branches found
No related tags found
No related merge requests found
...@@ -174,6 +174,13 @@ def main(): ...@@ -174,6 +174,13 @@ def main():
logger.info("MA{my_rank}: S{message_in} ".format(my_rank=my_rank,message_in=message_in)) logger.info("MA{my_rank}: S{message_in} ".format(my_rank=my_rank,message_in=message_in))
receive_counter = receive_counter + 1 receive_counter = receive_counter + 1
# Cleaning up the slaves temprory log file, if it is empty.
if len(os.listdir(slave_log_path) ) == 0:
print("Temprory log file is empty, it is deleted")
os.removedirs(slave_log_path)
end = time.time() end = time.time()
termination_message = "MA{my_rank}: Sucssfully terminated with total time : {wall_time}".format(my_rank=my_rank,wall_time= end-start) termination_message = "MA{my_rank}: Sucssfully terminated with total time : {wall_time}".format(my_rank=my_rank,wall_time= end-start)
logger.info(termination_message) logger.info(termination_message)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment