File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ const server = app.listen(app.get('port'), () => {
125
125
logger . info ( { component : 'app' , message : `Express server listening on port ${ app . get ( 'port' ) } ` } )
126
126
eventHandlers . init ( )
127
127
// schedule updateCompletedInterviews to run every hour
128
- schedule . scheduleJob ( '0 0 * * * *' , interviewService . updateCompletedInterviews )
128
+ schedule . scheduleJob ( config . CRON_UPDATE_COMPLETED_INTERVIEWS , interviewService . updateCompletedInterviews )
129
129
// schedule sendSurveys
130
130
if ( WeeklySurveySwitch . ON === config . WEEKLY_SURVEY . SWITCH ) {
131
131
schedule . scheduleJob ( config . WEEKLY_SURVEY . CRON , sendSurveys )
Original file line number Diff line number Diff line change @@ -293,6 +293,8 @@ module.exports = {
293
293
TAAS_NOTIFICATION_INTERVIEW_LINK_FOR_GUEST_SENDGRID_TEMPLATE_ID : process . env . TAAS_NOTIFICATION_INTERVIEW_LINK_FOR_GUEST_SENDGRID_TEMPLATE_ID ,
294
294
// the email notification sendgrid template id of job candidate invited
295
295
TAAS_NOTIFICATION_INTERVIEW_INVITATION_SENDGRID_TEMPLATE_ID : process . env . TAAS_NOTIFICATION_INTERVIEW_INVITATION_SENDGRID_TEMPLATE_ID ,
296
+ // frequency of cron update scheduled or rescheduled interview to completed status
297
+ CRON_UPDATE_COMPLETED_INTERVIEWS : process . env . CRON_UPDATE_COMPLETED_INTERVIEWS || '0 0 * * * *' ,
296
298
// frequency of cron checking for available candidates for review
297
299
CRON_CANDIDATE_REVIEW : process . env . CRON_CANDIDATE_REVIEW || '00 00 13 * * 0-6' ,
298
300
// frequency of cron checking for coming up interviews
You can’t perform that action at this time.
0 commit comments