Pre-tasks handler.

def _pre_tasks(self):
        """
        Pre-tasks handler.
        """
        if self.flushdb:
            management.call_command('flush', verbosity=0, interactive=False)
            logger.info('Flushed database')