Commit b20b9398 authored by Sebastien Robin's avatar Sebastien Robin

keep almost no tmp files, sometimes there is many Gb in /tmp after one day

parent c9974645
No related merge requests found
......@@ -586,7 +586,7 @@ branch = foo
test_node._cleanupLog()
check(set(['a_file']))
def test_17_cleanupLogDirectory(self):
def test_17_cleanupTempDirectory(self):
# Make sure that we are able to cleanup old temp folders
test_node = self.getTestNode()
temp_directory = self.system_temp_folder
......@@ -605,5 +605,5 @@ branch = foo
check(set(['buildoutA', 'something', 'tmpC']))
# then we set keep time to 0, folder will be deleted
test_node.max_temp_time = 0
test_node._cleanupLog()
test_node._cleanupTemporaryFiles()
check(set(['something']))
\ No newline at end of file
......@@ -45,7 +45,7 @@ from erp5.util import taskdistribution
DEFAULT_SLEEP_TIMEOUT = 120 # time in seconds to sleep
MAX_LOG_TIME = 15 # time in days we should keep logs that we can see through
# httd
MAX_TEMP_TIME = 5 # time in days we should keep temp files
MAX_TEMP_TIME = 0.01 # time in days we should keep temp files
supervisord_pid_file = None
PROFILE_PATH_KEY = 'profile_path'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment