We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48e7594 commit 1f40d15Copy full SHA for 1f40d15
1 file changed
ajet/backbone/warm_up.py
@@ -64,14 +64,14 @@ def clean_up_tmp_ajet_dir(config):
64
return
65
current_time = time.time()
66
ttl = 4 * 3600
67
+ print("Clean up old IPC socket files in /tmp/ajet directory.")
68
try:
69
for filename in os.listdir(tmp_dir):
70
if not filename.endswith(".sock"):
71
continue
72
73
file_path = os.path.join(tmp_dir, filename)
74
- print(current_time - os.path.getmtime(file_path))
75
if current_time - os.path.getmtime(file_path) > ttl:
76
os.remove(file_path)
77
except OSError:
0 commit comments