Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Pass decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad decorator_list FunctionDef arguments args defaults body FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults vararg kwarg body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise ExceptHandler type NameLoad name NameStore body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad Raise Call NameLoad NameLoad NameLoad decorator_list Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Raise Call NameLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body TryExcept body Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad orelse Raise decorator_list Call NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Return BoolOpAnd Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr DictComp NameLoad Call NameLoad NameLoad comprehension NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr comprehension NameStore Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad For NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index NameLoad Index NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Return Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr CompareIn NameLoad AttributeLoad NameLoad attr TryExcept body Return SubscriptLoad NameLoad Index Num handlers ExceptHandler type NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Return SubscriptLoad Call NameLoad ListLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults NameLoad body Return Dict Str Str NameLoad NameLoad decorator_list TryExcept body Assign NameStore Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Return DictComp NameLoad Call NameLoad Str Call NameLoad NameLoad comprehension NameStore NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str Call NameLoad NameLoad decorator_list Return DictComp NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list
N/A N/A os N/A xmlrpclib amqplib.client_0_8.method_framing defaultdict django.conf settings jsonobject.api JsonObject jsonobject.properties StringProperty IntegerProperty dimagi.utils.decorators.memoized memoized dimagi.utils.logging notify_exception N/A SERVER_STATE_RUNNING 1 N/A FAULT_NOT_RUNNING 70 SupervisorException N/A Exception N/A N/A N/A ProcessInfo N/A JsonObject N/A N/A host N/A StringProperty N/A name N/A StringProperty N/A group N/A StringProperty N/A start N/A IntegerProperty N/A stop N/A IntegerProperty N/A now N/A IntegerProperty N/A state N/A IntegerProperty N/A statename N/A StringProperty N/A spawnerr N/A StringProperty N/A exitstatus N/A IntegerProperty N/A stdout_logfile N/A StringProperty N/A stderr_logfile N/A StringProperty N/A pid N/A IntegerProperty N/A wrap_exception N/A N/A N/A N/A decorate N/A N/A func N/A N/A call_function N/A N/A N/A args kwargs N/A N/A N/A N/A N/A func args kwargs N/A N/A N/A SupervisorException N/A N/A N/A N/A Exception N/A e N/A N/A message N/A N/A Supervisor RPC call failed '{}' failed:  format N/A func __name__ N/A N/A notify_exception None message N/A N/A SupervisorException message e N/A N/A call_function N/A N/A decorate N/A SupervisorApi N/A object N/A N/A 
    Thin wrapper around the Supervisord XML-RPC interface
    http://supervisord.org/api.html
     __init__ N/A N/A self host N/A N/A N/A N/A N/A settings SUPERVISOR_RPC_ENABLED N/A N/A N/A SupervisorException N/A N/A Supervisord RPC interface not enabled in this environment: {} format N/A settings SERVER_ENVIRONMENT N/A N/A self _url N/A N/A http://{username}:{password}@{host}:9001/RPC2 format username N/A settings SUPERVISOR_USERNAME password N/A settings SUPERVISOR_PASSWORD host host N/A N/A self _server N/A N/A xmlrpclib Server N/A self _url N/A N/A N/A self check_state N/A check_state N/A N/A self N/A N/A N/A state N/A N/A N/A N/A self _server supervisor getState N/A N/A N/A state N/A statecode SERVER_STATE_RUNNING N/A N/A N/A SupervisorException N/A N/A Supervisord is not running: {} format N/A state N/A statename N/A N/A wrap_exception get_all_process_info N/A N/A self N/A N/A N/A N/A N/A N/A ProcessInfo wrap info N/A info N/A N/A N/A N/A self _server supervisor getAllProcessInfo N/A N/A wrap_exception get_process_info N/A N/A self name N/A N/A N/A N/A N/A ProcessInfo wrap N/A N/A N/A N/A self _server supervisor getProcessInfo name N/A N/A wrap_exception start_process N/A N/A self name wait N/A True N/A N/A N/A N/A N/A N/A self _server supervisor startProcess name wait N/A N/A wrap_exception stop_process N/A N/A self name wait N/A True N/A N/A N/A N/A N/A N/A N/A N/A self _server supervisor stopProcess name wait N/A N/A N/A N/A xmlrpclib Fault N/A f N/A N/A N/A N/A f faultCode FAULT_NOT_RUNNING N/A N/A True N/A N/A N/A N/A wrap_exception restart_process N/A N/A self name wait N/A True N/A N/A N/A N/A N/A self stop_process name wait N/A N/A self start_process name wait N/A N/A wrap_exception N/A HQSupervisorApi N/A object N/A __init__ N/A N/A self inventory_group N/A N/A N/A N/A self inventory_group inventory_group N/A N/A self servers N/A host N/A SupervisorApi host N/A host N/A N/A settings ENVIRONMENT_HOSTS N/A inventory_group N/A _add_host N/A N/A process_info host N/A N/A N/A N/A process_info host host N/A process_info N/A staticmethod get_all_process_info N/A N/A self N/A N/A N/A N/A N/A N/A HQSupervisorApi _add_host process_info host N/A N/A host server N/A N/A N/A self servers items N/A process_info N/A N/A server get_all_process_info N/A memoized refresh_process_infos N/A N/A self N/A N/A N/A N/A N/A N/A self get_all_process_info reset_cache self N/A N/A N/A self get_all_process_info N/A _process_info_by_host_name N/A N/A self N/A N/A N/A mapping N/A defaultdict defaultdict N/A info N/A N/A self _get_all_process_info N/A N/A N/A N/A mapping N/A N/A info host N/A N/A info name info N/A mapping N/A get_process_info N/A N/A self host name N/A N/A N/A process_info N/A N/A N/A N/A self _process_info_by_host_name N/A host N/A name N/A N/A N/A HQSupervisorApi _add_host host process_info N/A start_process N/A N/A self host name wait N/A True N/A N/A N/A N/A N/A N/A self servers N/A host start_process name wait wait N/A stop_process N/A N/A self host name wait N/A True N/A N/A N/A N/A N/A N/A self servers N/A host stop_process name wait wait N/A restart_process N/A N/A self host name wait N/A True N/A N/A N/A N/A N/A N/A self servers N/A host restart_process name wait N/A N/A PillowtopSupervisorApi N/A HQSupervisorApi N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A super PillowtopSupervisorApi self __init__ pillowtop N/A get_pillow_process_info N/A N/A self pillow_name N/A N/A N/A process_info N/A info N/A info N/A N/A self get_all_process_info N/A pillow_name N/A info name N/A N/A N/A N/A process_info N/A 0 N/A N/A N/A IndexError N/A N/A N/A SupervisorException N/A N/A Process not found for pillow: {} format pillow_name N/A memoized refresh_process_infos N/A N/A self N/A N/A N/A N/A N/A N/A self get_pillow_process_info reset_cache N/A N/A N/A N/A super PillowtopSupervisorApi self refresh_process_infos N/A start_pillow N/A N/A self pillow_name N/A N/A N/A info N/A N/A self get_pillow_process_info pillow_name N/A N/A N/A self start_process N/A info host N/A info name N/A stop_pillow N/A N/A self pillow_name N/A N/A N/A info N/A N/A self get_pillow_process_info pillow_name N/A N/A N/A self stop_process N/A info host N/A info name N/A restart_pillow N/A N/A self pillow_name N/A N/A N/A info N/A N/A self get_pillow_process_info pillow_name N/A N/A N/A self restart_process N/A info host N/A info name N/A N/A pillow_supervisor_status N/A N/A pillow_name N/A N/A N/A N/A N/A all_pillows_supervisor_status N/A pillow_name N/A pillow_name N/A all_pillows_supervisor_status N/A N/A pillow_names N/A N/A status N/A N/A state message N/A None N/A N/A N/A supervisor_state supervisor_message state message N/A N/A N/A N/A supervisor N/A PillowtopSupervisorApi N/A N/A N/A Exception N/A e N/A N/A N/A name N/A status (unavailable) N/A str e N/A name pillow_names get_status N/A N/A pillow_name N/A N/A N/A N/A N/A info N/A N/A supervisor get_pillow_process_info pillow_name N/A N/A status N/A info statename N/A N/A N/A Exception N/A e N/A N/A N/A status UNKNOWN N/A str e N/A N/A N/A name N/A get_status name N/A name pillow_names N/A