mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
REPO-5571 : Add tempFileCleanerTrigger configurations to be able to limit the job duration/quantity
- fixed log order
This commit is contained in:
@@ -517,16 +517,16 @@ public class TempFileProvider
|
||||
// it is a file - attempt a delete
|
||||
try
|
||||
{
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("Deleting temp file: " + file);
|
||||
}
|
||||
// only delete if the limits allow
|
||||
if (maxFilesToDelete != null && maxFilesToDelete.get() <= 0 ||
|
||||
maxTimeToRun != null && ((jobStartTime + maxTimeToRun.toMillis()) < System.currentTimeMillis()))
|
||||
{
|
||||
return count;
|
||||
}
|
||||
if(logger.isDebugEnabled())
|
||||
{
|
||||
logger.debug("Deleting temp file: " + file);
|
||||
}
|
||||
file.delete();
|
||||
if (maxFilesToDelete != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user