diff --git a/src/reverseproxy.js b/src/reverseproxy.js index 6ec5a9460..1daa48e18 100644 --- a/src/reverseproxy.js +++ b/src/reverseproxy.js @@ -712,6 +712,8 @@ async function cleanupCerts() { const certFilenames = filenames.filter(f => f.endsWith('.cert')); const now = new Date(); + debug('cleanupCerts: start'); + for (const certFilename of certFilenames) { const certFilePath = path.join(paths.NGINX_CERT_DIR, certFilename); const notAfter = getExpiryDate(certFilePath); @@ -730,6 +732,8 @@ async function cleanupCerts() { await blobs.del(`${blobs.CERT_PREFIX}-${fqdn}.csr`); } } + + debug('cleanupCerts: done'); } async function checkCerts(options, auditSource, progressCallback) { diff --git a/src/taskworker.js b/src/taskworker.js index d973e11d2..58866dda6 100755 --- a/src/taskworker.js +++ b/src/taskworker.js @@ -88,9 +88,6 @@ async.series([ if (getError) return exitSync({ error: getError, code: 50 }); if (!task) return exitSync({ error: new Error(`Task ${taskId} not found`), code: 50 }); - const [updateError] = await safe(tasks.update(taskId, { percent: 2, error: null })); - if (updateError) return exitSync({ error: updateError, code: 50 }); - const progressCallback = async function (progress, callback) { await safe(tasks.update(taskId, progress), { debug }); if (callback) callback();