#NEWLINE# def get_old_happy_unhappy_draining_tasks( other_apps , drain_method , service , nerve_ns , bounce_health_params , system_paasta_config ) : #NEWLINE# #INDENT# 'Split tasks from old apps into 3 categories:\n      - live (not draining) and happy (according to get_happy_tasks)\n      - live (not draining) and unhappy\n      - draining\n    ' #NEWLINE# old_app_live_happy_tasks = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# old_app_live_unhappy_tasks = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# old_app_draining_tasks = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for app in other_apps : #NEWLINE# #INDENT# tasks_by_state = get_old_happy_unhappy_draining_tasks_for_app ( app , drain_method , service , nerve_ns , bounce_health_params , system_paasta_config ) #NEWLINE# old_app_live_happy_tasks [ app . id ] = tasks_by_state [ 'happy' ] #NEWLINE# old_app_live_unhappy_tasks [ app . id ] = tasks_by_state [ 'unhappy' ] #NEWLINE# old_app_draining_tasks [ app . id ] = tasks_by_state [ 'draining' ] #NEWLINE# #UNINDENT# return ( old_app_live_happy_tasks , old_app_live_unhappy_tasks , old_app_draining_tasks )