Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore ListComp SubscriptLoad NameLoad Index Str comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num NameLoad If NameLoad body Print BinOpMod Str TupleLoad Call AttributeLoad Str attr GeneratorExp BinOpMod Str TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad IfExp AttributeLoad NameLoad attr Str Str If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num orelse Print Str Expr Call AttributeLoad NameLoad attr Num decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A argparse N/A sys paasta_tools mesos_tools paasta_tools.utils get_docker_client paasta_tools.utils get_running_mesos_docker_containers parse_args N/A N/A N/A N/A N/A parser N/A N/A argparse ArgumentParser description N/A Cross references running containers with task ids from the mesos slave  and optionally kills them. N/A N/A N/A parser add_argument -f --force action store_true help Actually kill the containers. (defaults to dry-run) N/A args N/A N/A parser parse_args N/A args N/A main N/A N/A N/A N/A N/A args N/A parse_args N/A docker_client N/A get_docker_client N/A running_mesos_task_ids N/A N/A task N/A id N/A task N/A N/A mesos_tools filter_running_tasks N/A N/A mesos_tools get_running_tasks_from_active_frameworks N/A running_mesos_docker_containers N/A get_running_mesos_docker_containers N/A orphaned_containers N/A N/A container running_mesos_docker_containers N/A N/A mesos_task_id N/A N/A mesos_tools get_mesos_id_from_container container container client docker_client N/A N/A mesos_task_id running_mesos_task_ids N/A N/A N/A N/A orphaned_containers append N/A N/A N/A container N/A Names N/A 0 mesos_task_id N/A orphaned_containers N/A N/A N/A CRIT: Docker containers are orphaned: %s%s N/A N/A N/A ,  join N/A N/A %s (%s) N/A container_name mesos_task_id N/A N/A container_name mesos_task_id orphaned_containers N/A N/A args force  and will be killed N/A N/A args force N/A N/A N/A container_name mesos_task_id orphaned_containers N/A N/A N/A N/A docker_client kill container_name N/A N/A N/A sys exit 1 N/A N/A OK: All mesos task IDs accounted for N/A N/A N/A sys exit 0 N/A N/A N/A __name__ __main__ N/A N/A N/A main