From 5aff80a1af73f31b795878ff2b062978a484274f Mon Sep 17 00:00:00 2001 From: Siddharth VP Date: Sun, 1 Oct 2023 22:28:44 +0530 Subject: [PATCH] reduce sleep period between ORES calls, give more memory to npp task --- jobs.yml | 2 +- reports/OresUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jobs.yml b/jobs.yml index 0305102..9af1257 100644 --- a/jobs.yml +++ b/jobs.yml @@ -3,7 +3,7 @@ - {"schedule": "0 2 1,15 * *", "name": "job-mostimported", mem: "256Mi", "command": "~/SDZeroBot/job reports/most-imported-scripts/most-imported-scripts.js", "image": "node16", "emails": "onfailure"} - {"schedule": "0 2,10,18 * * *", "name": "job-afc", mem: "256Mi", "command": "~/SDZeroBot/job reports/afc-sorting/afc-sorting.js", "image": "node16", "emails": "onfailure"} - {"schedule": "15 2,10,18 * * *", "name": "job-pafc", mem: "256Mi", "command": "~/SDZeroBot/job reports/pending-afc.js", "image": "node16", "emails": "onfailure"} -- {"schedule": "0 1,13 * * *", "name": "job-npp", mem: "256Mi", "command": "~/SDZeroBot/job reports/npp-sorting/npp-sorting.js", "image": "node16", "emails": "onfailure"} +- {"schedule": "0 1,13 * * *", "name": "job-npp", mem: "512Mi", "command": "~/SDZeroBot/job reports/npp-sorting/npp-sorting.js", "image": "node16", "emails": "onfailure"} - {"schedule": "30 0,4,8,12,16,20 * * *", "name": "job-prod", mem: "256Mi", "command": "~/SDZeroBot/job reports/prod-sorting/prod-sorting.js", "image": "node16", "emails": "onfailure"} - {"schedule": "30 1,5,9,13,17,21 * * *", "name": "job-afd", mem: "256Mi", "command": "~/SDZeroBot/job reports/afd-sorting/afd-sorting.js", "image": "node16", "emails": "onfailure"} - {"schedule": "0 1 * * *", "name": "job-notifier", mem: "256Mi", "command": "~/SDZeroBot/job afd-notifications/notifier.js", "image": "node16", "emails": "onfailure"} diff --git a/reports/OresUtils.js b/reports/OresUtils.js index 65ae6d5..726f981 100644 --- a/reports/OresUtils.js +++ b/reports/OresUtils.js @@ -56,7 +56,7 @@ module.exports = { console.log(err); return Promise.reject(err); }); - }, 2000, 2).then(({failures}) => { + }, 100, 2).then(({failures}) => { // fail if all ORES calls didn't succeed eventually let numFailing = Object.keys(failures).length; if (numFailing > 0) {