   MailSent.create newSentMail, (err) ->
     if err? then return cb err
     sendwithus.api.send context, (err, result) ->
-      log.error "Error sending ladder update email: #{err} with result #{result}" if err
-      cb err
+      log.error "Error sending interal candidate update email: #{err} with result #{result}" if err
+      cb null
   
 internalCandidateUpdateTask = ->
   mailTaskName = "internalCandidateUpdateTask"

    MailSent.create newSentMail, (err) ->
      if err? then return sendEmailCallback err
      sendwithus.api.send context, (err, result) ->
        log.error "Error sending ladder update email: #{err} with result #{result}" if err
        sendEmailCallback err

generateWeekOffset = (originalDate, numberOfWeeks) ->
  return (new Date(originalDate.getTime() - numberOfWeeks * 7 * 24 * 60 * 60 * 1000)).toISOString()

    MailSent.create newSentMail, (err) ->
      if err? then return cb err
      sendwithus.api.send context, (err, result) ->
        log.error "Error sending employer candidates available email: #{err} with result #{result}" if err
        cb null

employerNewCandidatesAvailableTask = ->
  #initialize featuredDate to job profile updated
