Module Assign NameStore Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Num body If UnaryOpNot BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str TryExcept body While AttributeLoad NameLoad attr body If CompareLt Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse For NameStore AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A __author__ sandeep N/A signal N/A time N/A sys N/A multiprocessing N/A inspect N/A traceback N/A logging N/A LOGGER N/A N/A logging getLogger __name__ ServiceManager N/A object N/A __init__ N/A N/A self worker_cls num_workers N/A 2 N/A N/A N/A N/A N/A N/A inspect isclass worker_cls N/A issubclass worker_cls N/A multiprocessing Process N/A N/A N/A ValueError Worker class must extend multiprocessing.Process N/A N/A self workers N/A N/A N/A self num_workers num_workers N/A N/A self worker_cls worker_cls N/A N/A self running False N/A N/A N/A signal signal N/A signal SIGINT N/A self stop N/A N/A N/A signal signal N/A signal SIGTERM N/A self stop N/A start N/A N/A self N/A args kwargs N/A N/A N/A self running True N/A N/A N/A LOGGER info Starting: Hedwig Worker Service... N/A N/A N/A N/A self running N/A N/A N/A N/A len N/A self workers N/A self num_workers N/A N/A worker N/A N/A self worker_cls args kwargs N/A N/A N/A worker start N/A N/A N/A N/A self workers append worker N/A N/A worker N/A self workers N/A N/A N/A N/A N/A worker is_alive N/A N/A N/A N/A worker shutdown N/A N/A N/A N/A self workers remove worker N/A N/A N/A worker terminate N/A N/A N/A time sleep 5 N/A N/A N/A KeyboardInterrupt N/A N/A N/A N/A self stop N/A N/A Exception N/A e N/A N/A N/A N/A LOGGER exception N/A str e N/A N/A N/A traceback print_exc file N/A sys stdout N/A N/A N/A self stop N/A stop N/A N/A self signum frame N/A None None N/A N/A N/A self running False N/A N/A N/A LOGGER info Stopping: Hedwig Worker Service... N/A worker N/A self workers N/A N/A N/A N/A LOGGER info N/A Stopping Worker:  N/A worker name N/A N/A N/A worker shutdown N/A N/A N/A worker terminate N/A N/A N/A sys exit 0 N/A is_running N/A N/A self N/A N/A N/A N/A self running N/A N/A