    def recover_in_progress_tasks(self):
        # type: () -> None
        '''
        Recovers in progress tasks from a previous run.
        '''
        for task in self.tasker.get_active_tasks():
            # Log new task
            logging.info('Recovering task for {0}'.format(task.username))

            self._add_task(task)
Recovers in progress tasks from a previous run.
securitybot/bot.py