def create_failed(pid_dir, rule):
    Datefile(pid_dir, rule.name % "%s.failed", timestamp=datetime.utcnow())
    next_retry = os.path.join(pid_dir, "%s.next_retry" % rule.name)
    if os.path.exists(next_retry):
        os.unlink(next_retry)
dataset/ETHPy150Open chango/inferno/inferno/lib/pid.py/create_failed/swapped operands of `%`