Skip to content

Commit 2661e7f

Browse files
committed
Remove duplicate adding of current time to delay for cleanup jobs during queueing so that they won't happen in decades in the future
1 parent fe913ab commit 2661e7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deposit/src/main/java/edu/unc/lib/deposit/work/DepositSupervisor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ private void queueNextJob(Job job, String depositUUID, Map<String, String> statu
620620
Job cleanJob = makeJob(CleanupDepositJob.class, depositUUID);
621621
LOG.info("Queuing {} for deposit {}",
622622
cleanJob.getClassName(), depositUUID);
623-
enqueueJob(cleanJob, status, System.currentTimeMillis() + 1000 * this.getCleanupDelaySeconds());
623+
enqueueJob(cleanJob, status, 1000 * this.getCleanupDelaySeconds());
624624
}
625625
}
626626

0 commit comments

Comments
 (0)