1.临时文件保留日期可通过配置文件修改 2.对fixed线程池状态监控#2184
Open
wangshuai67 wants to merge 2 commits intoedp963:dev-0.3from
Open
Conversation
xxxllluuu
reviewed
Jun 22, 2021
| @Autowired | ||
| private ShareDownloadRecordMapper shareDownloadRecordMapper; | ||
| @Value("${file.temp.remain.days:7}") | ||
| private int fileTempRemainDays; |
Contributor
There was a problem hiding this comment.
临时文件保留日期如果是个没有层次的属性,建议使用file_temp_remain_days
xxxllluuu
reviewed
Jun 22, 2021
| 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); |
Contributor
There was a problem hiding this comment.
建议也一并输出下csv的目录,','和','需要统一
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1.临时文件保留日期可通过配置文件修改,2.以及进行fixed线程池状态监控
修改定时任务配置