-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.临时文件保留日期可通过配置文件修改 2.对fixed线程池状态监控 #2184
base: dev-0.3
Are you sure you want to change the base?
Conversation
@@ -55,24 +59,37 @@ | |||
|
|||
@Autowired | |||
private ShareDownloadRecordMapper shareDownloadRecordMapper; | |||
@Value("${file.temp.remain.days:7}") | |||
private int fileTempRemainDays; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
临时文件保留日期如果是个没有层次的属性,建议使用file_temp_remain_days
CLEAR_TEMPDIR_THREADPOOL.execute(() -> FileUtils.deleteDir(new File(temp))); | ||
CLEAR_TEMPDIR_THREADPOOL.execute(() -> FileUtils.deleteDir(new File(csv))); | ||
} catch (Exception e) { | ||
log.error("文件删除定时任务执行异常downloadDir:[{}],tempDir:[{}],请检查IO以及手动处理临时文件",downloadDir,tempDir); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
建议也一并输出下csv的目录,','和','需要统一
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed
1.临时文件保留日期可通过配置文件修改,2.以及进行fixed线程池状态监控
修改定时任务配置