'Immediately re-run the task after execute has completed,
task can be re-run up to :attr:`.max_reruns` times.
:param str plugin: Plugin name
:param str reason: Why the rerun is done'

def rerun(self, plugin=None, reason=None):

    msg = u'Plugin    {0}    has    requested    task    to    be    ran    again    after    execution    has    completed.'.format((self.current_plugin if (plugin is None) else plugin))
    if reason:
        msg += u'    Reason:    {0}'.format(reason)
    if self._rerun:
        log.debug(msg)
    else:
        log.info(msg)
    self._rerun = True
