From 8604cb53281b7b239a81a54e0466871e3d68899a Mon Sep 17 00:00:00 2001 From: Marcus Sorensen Date: Mon, 8 May 2023 00:39:50 -0600 Subject: [PATCH] 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 --- .../cloudstack/direct/download/DirectDownloadManagerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/apache/cloudstack/direct/download/DirectDownloadManagerImpl.java b/server/src/main/java/org/apache/cloudstack/direct/download/DirectDownloadManagerImpl.java index 49b87d27949..17cb96931ec 100644 --- a/server/src/main/java/org/apache/cloudstack/direct/download/DirectDownloadManagerImpl.java +++ b/server/src/main/java/org/apache/cloudstack/direct/download/DirectDownloadManagerImpl.java @@ -742,7 +742,7 @@ public class DirectDownloadManagerImpl extends ManagerBase implements DirectDown executorService.scheduleWithFixedDelay( new DirectDownloadCertificateUploadBackgroundTask(this, hostDao, dataCenterDao, directDownloadCertificateDao, directDownloadCertificateHostMapDao), - 60L, DirectDownloadCertificateUploadInterval.value(), TimeUnit.HOURS); + 1L, DirectDownloadCertificateUploadInterval.value(), TimeUnit.HOURS); } return true; }