Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
chris.ditcher authored and chris.ditcher committed Jul 17, 2023
1 parent b46c9b2 commit d8e9afa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public ScheduledTasksConfig(@Qualifier("TmpCacheFileVisitor") FileVisitor<Path>
this.educDistributionApiConstants = educDistributionApiConstants;
}

/**
* Removes artifacts from the /tmp/Batch directory that are expired
*/
@Scheduled(cron = "${scheduler.clean-tmp-cache-cron}")
public void cleanTmpCacheFiles() {
Path startingDir = Paths.get(educDistributionApiConstants.getCleanTmpCacheBaseDir());
Expand All @@ -38,7 +41,6 @@ public void cleanTmpCacheFiles() {
logger.error("ScheduledTasksConfig: There was an error removing file cache: {}", e.getLocalizedMessage());
}
}

}


Expand Down

0 comments on commit d8e9afa

Please sign in to comment.