Skip to content

Commit 8604cb5

Browse files
Marcus SorensenMarcus Sorensen
andauthored
server: Fix DirectDownload certificate check initial delay (#7494)
This PR adjusts the DirectDownload certificate check initial delay. Since the time unit is in hours, I think it was a mistake to schedule the initial check to be in 60 hours after management servers start - the intention was likely 60 seconds. We had turned this feature on to run hourly, not realizing we would have to wait 2.5 days to see it first run! Co-authored-by: Marcus Sorensen <mls@apple.com>
1 parent 3cb4c80 commit 8604cb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/java/org/apache/cloudstack/direct/download/DirectDownloadManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ public boolean start() {
742742
executorService.scheduleWithFixedDelay(
743743
new DirectDownloadCertificateUploadBackgroundTask(this, hostDao, dataCenterDao,
744744
directDownloadCertificateDao, directDownloadCertificateHostMapDao),
745-
60L, DirectDownloadCertificateUploadInterval.value(), TimeUnit.HOURS);
745+
1L, DirectDownloadCertificateUploadInterval.value(), TimeUnit.HOURS);
746746
}
747747
return true;
748748
}

0 commit comments

Comments
 (0)