@task
def stop():
    """Stop the Gunicorn process"""

    set_env_defaults()

    if not gunicorn_running():
        puts(colors.red("Gunicorn isn't running!"))
        return

    run((env.gunicorn_pidpath) % 'kill `cat %s`')

    for i in range(0, 5):
        puts('.', end='', show_prefix=i == 0)

        if gunicorn_running():
            sleep(1)
        else:
            puts('', show_prefix=False)
            puts(colors.green("Gunicorn was stopped."))
            break
    else:
        puts(colors.red("Gunicorn wasn't stopped!"))
        return
dataset/ETHPy150Open jarus/fabric-gunicorn/fabric_gunicorn.py/stop/swapped operands of `%`