'Runs the task
:return: None'

def run(self):

    super(PostProcessorTask, self).run()
    try:
        logger.log(u'Beginning    {mode}    post    processing    task:    {directory}'.format(mode=self.mode, directory=self.directory))
        self.last_result = process_dir(process_path=self.directory, release_name=self.filename, process_method=self.method, force=self.force, is_priority=self.is_priority, delete_on=self.delete, failed=self.failed, mode=self.mode)
        logger.log(u'{mode}    post    processing    task    for    {directory}    completed'.format(mode=self.mode.title(), directory=self.directory))
        time.sleep(common.cpu_presets[sickbeard.CPU_PRESET])
    except Exception:
        logger.log(traceback.format_exc(), logger.DEBUG)
    super(PostProcessorTask, self).finish()
    self.finish()
