Skip to content

Commit c37eab7

Browse files
authored
Merge pull request topcoder-platform#624 from yoution/issue-560
fix: issue topcoder-archive/topcoder-platform-taas-app#560
2 parents 5af2883 + 52e3f84 commit c37eab7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const server = app.listen(app.get('port'), () => {
125125
logger.info({ component: 'app', message: `Express server listening on port ${app.get('port')}` })
126126
eventHandlers.init()
127127
// schedule updateCompletedInterviews to run every hour
128-
schedule.scheduleJob('0 0 * * * *', interviewService.updateCompletedInterviews)
128+
schedule.scheduleJob(config.CRON_UPDATE_COMPLETED_INTERVIEWS, interviewService.updateCompletedInterviews)
129129
// schedule sendSurveys
130130
if (WeeklySurveySwitch.ON === config.WEEKLY_SURVEY.SWITCH) {
131131
schedule.scheduleJob(config.WEEKLY_SURVEY.CRON, sendSurveys)

config/default.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ module.exports = {
293293
TAAS_NOTIFICATION_INTERVIEW_LINK_FOR_GUEST_SENDGRID_TEMPLATE_ID: process.env.TAAS_NOTIFICATION_INTERVIEW_LINK_FOR_GUEST_SENDGRID_TEMPLATE_ID,
294294
// the email notification sendgrid template id of job candidate invited
295295
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 * * * *',
296298
// frequency of cron checking for available candidates for review
297299
CRON_CANDIDATE_REVIEW: process.env.CRON_CANDIDATE_REVIEW || '00 00 13 * * 0-6',
298300
// frequency of cron checking for coming up interviews

0 commit comments

Comments
 (0)