@task
def add_worker():
    """Increase the number of your Gunicorn workers"""
    set_env_defaults()
    if not gunicorn_running():
        puts(colors.red("Gunicorn isn't running!"))
        return

    puts(colors.green('Increasing number of workers...'))
    run('kill -TTIN `cat %s`' % (env.gunicorn_pidpath))
    puts(colors.yellow('Active workers: %s' % gunicorn_running_workers()))
dataset/ETHPy150Open jarus/fabric-gunicorn/fabric_gunicorn.py/add_worker/original