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 5, 2023
1 parent a9ad8f9 commit cafffc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions config/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,5 @@ QF_ROUND_ESTIMATED_MATCHING_CACHE_DURATION=60000
# OPTIONAL - default: Every 10 minutes
PROJECT_CAMPAIGNS_CACHE_DURATION=600000

# OPTIONAL - default: */10 * * * * * ( Every 10 minutes)
PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION=*/10 * * * * *
# OPTIONAL - default: *0 */5 * * * ( Every 5 minutes)
PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION=0 */5 * * *
4 changes: 2 additions & 2 deletions config/test.env
Original file line number Diff line number Diff line change
Expand Up @@ -179,5 +179,5 @@ QF_ROUND_ESTIMATED_MATCHING_CACHE_DURATION=1
PROJECT_CAMPAIGNS_CACHE_DURATION=1


# OPTIONAL - default: */10 * * * * * ( Every 10 minutes)
PROJECT_CAMPAIGNS_CRONJOB_EXPRESSION=*/10 * * * * *
# OPTIONAL - default: *0 */5 * * * ( Every 5 minutes)
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) ||
'*/10 * * * *';
'0 */5 * * *';

const projectsFiltersThreadPool: Pool<
ModuleThread<CacheProjectCampaignsWorker>
Expand Down

0 comments on commit cafffc9

Please sign in to comment.