From 5e966de7d820cb53132cebc5f591d4c89be7f4da Mon Sep 17 00:00:00 2001 From: Mohammad Ranjbar Z Date: Sat, 7 Oct 2023 13:49:11 +0330 Subject: [PATCH] Change default value of CACHE_PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION --- config/example.env | 2 +- config/test.env | 2 +- src/services/cronJobs/updateProjectCampaignsCacheJob.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/example.env b/config/example.env index 2f03bd6f9..9c13f9b31 100644 --- a/config/example.env +++ b/config/example.env @@ -207,4 +207,4 @@ QF_ROUND_ESTIMATED_MATCHING_CACHE_DURATION=60000 PROJECT_CAMPAIGNS_CACHE_DURATION=600000 # OPTIONAL - default: *0 */5 * * * ( Every 5 minutes) -PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION=0 */5 * * * +CACHE_PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION=0 */5 * * * * diff --git a/config/test.env b/config/test.env index 5f1398a3b..8ec66bc77 100644 --- a/config/test.env +++ b/config/test.env @@ -180,4 +180,4 @@ PROJECT_CAMPAIGNS_CACHE_DURATION=1 # OPTIONAL - default: *0 */5 * * * ( Every 5 minutes) -PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION=0 */5 * * * +CACHE_PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION=0 */5 * * * * diff --git a/src/services/cronJobs/updateProjectCampaignsCacheJob.ts b/src/services/cronJobs/updateProjectCampaignsCacheJob.ts index b29b11cd6..0c1d24e6a 100644 --- a/src/services/cronJobs/updateProjectCampaignsCacheJob.ts +++ b/src/services/cronJobs/updateProjectCampaignsCacheJob.ts @@ -8,7 +8,7 @@ import { CacheProjectCampaignsWorker } from '../../workers/cacheProjectCampaigns // every 10 minutes const cronJobTime = (config.get('CACHE_PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION') as string) || - '0 */5 * * *'; + '0 */5 * * * *'; const projectsFiltersThreadPool: Pool< ModuleThread