Skip to content

Commit

Permalink
Change default value of CACHE_PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadranjbarz committed Oct 7, 2023
1 parent 81501d3 commit 5e966de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -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 * * * *
2 changes: 1 addition & 1 deletion config/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -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 * * * *
2 changes: 1 addition & 1 deletion src/services/cronJobs/updateProjectCampaignsCacheJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheProjectCampaignsWorker>
Expand Down

0 comments on commit 5e966de

Please sign in to comment.