From b83cb31e14b4d55e33d52c84b36a602235809ebd Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Tue, 28 Nov 2023 10:39:12 -0500 Subject: [PATCH] Stop running the cleanup job every minute --- src/server.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.mjs b/src/server.mjs index d9817005..90bfba29 100644 --- a/src/server.mjs +++ b/src/server.mjs @@ -212,7 +212,7 @@ async function lockDirectories(directoryPaths, lockType, func) { // runs every hour // deletes any files in the download directory past the set fileExpirationTime set in config -cron.schedule('* * * * *', () => { +cron.schedule('0 * * * *', () => { console.log("cron scheduled check"); // attempt to acquire a write lock for each on the directory before attemping to delete files for (const dir of [DOWNLOAD_DATA_PATH, UPLOAD_DATA_PATH]) {