Skip to content
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

Open
wants to merge 2 commits into
base: dev-0.3
Choose a base branch
from

Conversation

wangshuai67
Copy link

1.临时文件保留日期可通过配置文件修改,2.以及进行fixed线程池状态监控
修改定时任务配置

@scottsut scottsut requested a review from xxxllluuu April 2, 2021 08:56
@@ -55,24 +59,37 @@

@Autowired
private ShareDownloadRecordMapper shareDownloadRecordMapper;
@Value("${file.temp.remain.days:7}")
private int fileTempRemainDays;
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议也一并输出下csv的目录,','和','需要统一

Copy link
Contributor

@xxxllluuu xxxllluuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants