Module Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Import alias Assign NameStore Str ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad TryExcept body Return SubscriptLoad Call NameLoad NameLoad Index Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str NameLoad NameLoad Assign NameStore Call NameLoad Dict Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpMod NameLoad NameLoad ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr If CompareGt NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr NameLoad Return NameLoad Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Return NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Str Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpAnd NameLoad UnaryOpNot CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str NameLoad NameLoad If CompareLtE NameLoad NameLoad body If BoolOpOr UnaryOpNot NameLoad CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A logging N/A logger N/A N/A logging getLogger __name__ nymms.schemas Result types nymms.daemon NymmsDaemon nymms.resources Monitor nymms.utils commands nymms.config.yaml_config load_config EmptyConfig N/A arrow N/A TIMEOUT_OUTPUT Command timed out after %d seconds. Probe N/A NymmsDaemon N/A N/A state_manager None get_private_context N/A N/A self private_context_file N/A N/A N/A N/A private_context_file N/A N/A None N/A N/A N/A N/A N/A load_config private_context_file N/A 1 N/A N/A N/A N/A IOError EmptyConfig N/A N/A N/A N/A logger exception Unable to open private context file: %s private_context_file N/A None N/A get_state N/A N/A self task_id N/A N/A N/A N/A N/A N/A self state_manager get_state task_id N/A get_task N/A N/A self N/A kwargs N/A N/A NotImplementedError N/A resubmit_task N/A N/A self task delay N/A kwargs N/A N/A NotImplementedError N/A submit_result N/A N/A self result N/A kwargs N/A N/A NotImplementedError N/A delete_task N/A N/A self task N/A N/A N/A NotImplementedError N/A execute_task N/A N/A self task timeout N/A kwargs N/A N/A log_prefix N/A %s -  N/A N/A task id N/A monitor N/A N/A Monitor registry N/A N/A N/A N/A task context N/A monitor N/A name N/A command N/A N/A monitor command command_string N/A current_attempt N/A N/A int N/A task attempt 1 N/A N/A N/A logger debug N/A log_prefix attempt %d, executing: %s current_attempt command N/A result N/A Result N/A id timestamp task_context N/A task id N/A task created N/A task context N/A N/A N/A output N/A N/A monitor execute N/A task context timeout N/A self _private_context N/A N/A result output output N/A N/A result state N/A types STATE_OK N/A N/A N/A N/A commands CommandException N/A e N/A N/A N/A isinstance e N/A commands CommandFailure N/A N/A N/A result state N/A e return_code N/A N/A result output N/A e output N/A N/A isinstance e N/A commands CommandTimeout N/A N/A N/A result state N/A types STATE_UNKNOWN N/A N/A result output N/A TIMEOUT_OUTPUT timeout N/A N/A Exception N/A e N/A N/A N/A result state N/A types STATE_UNKNOWN N/A N/A result output N/A str e N/A N/A result state_type N/A types STATE_TYPE_HARD N/A N/A N/A result validate N/A result N/A expire_task N/A N/A self task task_expiration N/A N/A N/A task_expiration N/A N/A now N/A N/A arrow get N/A task_lifetime N/A N/A now timestamp N/A N/A task created timestamp N/A N/A task_lifetime task_expiration N/A N/A N/A N/A logger debug Task %s is older than expiration limit %d. Skipping. N/A task id task_expiration N/A True N/A False N/A False N/A handle_task N/A N/A self task N/A kwargs N/A N/A log_prefix N/A %s -  N/A N/A task id N/A task_expiration N/A N/A kwargs get task_expiration None N/A N/A N/A self expire_task task task_expiration N/A N/A None N/A monitor N/A N/A Monitor registry N/A N/A N/A N/A task context N/A monitor N/A name N/A command N/A monitor command N/A N/A task context N/A N/A command build_context N/A task context N/A previous_state N/A N/A self get_state N/A task id N/A timeout N/A N/A N/A task context get monitor_timeout N/A N/A kwargs get monitor_timeout N/A max_retries N/A N/A N/A task context get max_retries N/A N/A kwargs get max_retries N/A last_attempt N/A int N/A task attempt N/A current_attempt N/A last_attempt 1 N/A result N/A N/A self execute_task task timeout kwargs N/A N/A N/A result state N/A types STATE_OK N/A N/A N/A previous_state N/A N/A N/A previous_state state N/A types STATE_OK N/A N/A previous_state state_type N/A types STATE_TYPE_SOFT N/A N/A N/A result state_type N/A types STATE_TYPE_SOFT N/A N/A N/A N/A logger debug N/A log_prefix current_attempt: %d, max_retries: %d current_attempt max_retries N/A N/A current_attempt max_retries N/A N/A N/A N/A previous_state N/A N/A previous_state state_type N/A types STATE_TYPE_SOFT N/A N/A previous_state state N/A types STATE_OK N/A N/A N/A result state_type N/A types STATE_TYPE_SOFT N/A delay N/A N/A N/A task context get retry_delay N/A N/A kwargs get retry_delay N/A delay N/A max delay 0 N/A N/A N/A logger debug Resubmitting task with %ds delay. delay N/A N/A N/A self resubmit_task task delay kwargs N/A N/A N/A N/A logger debug Retry limit hit, not resubmitting. N/A N/A N/A result validate N/A result N/A run N/A N/A self N/A kwargs N/A N/A  This will run in a tight loop. It is expected that the subclass's
        get_task() method will introduce a delay if the results queue is
        empty.
         N/A private_context_file N/A N/A kwargs get private_context_file None N/A N/A self _private_context N/A N/A self get_private_context private_context_file N/A True N/A N/A task N/A N/A self get_task kwargs N/A N/A task N/A N/A N/A N/A logger debug Task queue is empty. N/A N/A result N/A N/A self handle_task task kwargs N/A result N/A N/A N/A N/A self submit_result result kwargs N/A N/A N/A self delete_task task N/A N/A