@register_bounce_method('down')
def down_bounce(
    new_config,
    new_app_running,
    happy_new_tasks,
    old_app_live_happy_tasks,
    old_app_live_unhappy_tasks,
):
    return {
        "create_app": False,
        "tasks_to_drain": flatten_tasks(old_app_live_happy_tasks) | flatten_tasks(old_app_live_unhappy_tasks),
    }

# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
Stops old apps, doesn't start any new apps.
dataset/ETHPy150Open Yelp/paasta/paasta_tools/bounce_lib.py/down_bounce