code: def mark_resolved(task_id):
      
      from . import models
      models.FailedTask.objects.filter(task_id=task_id, datetime_resolved=None).update(datetime_resolved=now())
docs: Mark the specified task as resolved in the FailedTask table.
  
      If more than one record exists with the specified task id, they will all be
      marked resolved.