File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -209,14 +209,17 @@ def remove_process_lock_file(lock_filename: str) -> None:
209
209
find_log_files_and_delete .partial (directory = directory ).expand_kwargs (
210
210
[
211
211
{
212
+ # Find the files whose modification time was 3 days aao
212
213
"find_stmt_tpl" : f"find %s/*/* -type f -mtime +{ max_log_age_in_days } " ,
213
214
"delete_stmt_tpl" : "%s -exec rm -f {} \;" ,
214
215
},
215
216
{
217
+ # Find the directory under base_log_folder/*/* that is empty
216
218
"find_stmt_tpl" : "find %s/*/* -type d -empty" ,
217
219
"delete_stmt_tpl" : "%s -prune -exec rm -rf {} \;" ,
218
220
},
219
221
{
222
+ # Find the directory under base_log_folder/* that is empty
220
223
"find_stmt_tpl" : "find %s/* -type d -empty" ,
221
224
"delete_stmt_tpl" : "%s -prune -exec rm -rf {} \;" ,
222
225
},
You can’t perform that action at this time.
0 commit comments