doortts doortts 2017-08-09
global: Change initial temporary file cleanup time
First run clean up action timing
---
- before
  - onStart
- after
  - application.temporaryfiles.keep-up.time of application.conf
  after onStart
@e201428f56dea23b789102a270cabfb53e87f7e2
app/models/Attachment.java
--- app/models/Attachment.java
+++ app/models/Attachment.java
@@ -441,7 +441,7 @@
      */
     private static void cleanupTemporaryUploadFilesWithSchedule() {
         Akka.system().scheduler().schedule(
-                Duration.create(0, TimeUnit.SECONDS),
+                Duration.create(AttachmentApp.TEMPORARYFILES_KEEPUP_TIME_MILLIS, TimeUnit.MILLISECONDS),
                 Duration.create(AttachmentApp.TEMPORARYFILES_KEEPUP_TIME_MILLIS, TimeUnit.MILLISECONDS),
                 new Runnable() {
                     @Override
Add a comment
List