   lockManager.setLock mailTaskName, lockDurationMs, (err, lockResult) ->
     if err? then return log.error "Error getting a task lock!"
     async.each timeRanges, emailTimeRange.bind(mailTaskName: mailTaskName), (err) ->
-      if err then return log.error JSON.stringify err else log.info "Sent candidate update reminders!"
+      if err then log.error JSON.stringify err else log.info "Sent candidate update reminders!"
       lockManager.releaseLock mailTaskName, (err, result) -> if err? then return log.error err
         
 ### End Candidate Update Reminder Task ###

    "jobProfile.updated":
      $gt: @timeRange.start
      $lte: @timeRange.end
  selection =  "_id email jobProfile.name jobProfile.updated"
  User.find(findParameters).select(selection).lean().exec cb
  

setupScheduledEmails = ->
  testForLockManager()
  mailTaskMap = 
    "test_mail_task": employerNewCandidatesAvailableTask
    
  MailTask.find({}).lean().exec (err, mailTasks) ->
    if err? then throw "Failed to schedule mailTasks! #{err}"
