Module Expr Str Import alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Assign NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr BinOpMod Str Call AttributeLoad NameLoad attr Str Assign NameStore Dict If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Dict Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Raise Call NameLoad NameLoad ExceptHandler body Expr Call AttributeLoad NameLoad attr Str NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore BinOpMod Str TupleLoad NameLoad Call NameLoad NameLoad Raise Call NameLoad NameLoad ExceptHandler body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareGt NameLoad Num CompareGt NameLoad Num body Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list
N/A N/A 
Module with utility functions for purging old action executions and
corresponding live action objects.
 N/A copy mongoengine.errors InvalidQueryError st2common.constants action action_constants st2common.persistence.liveaction LiveAction st2common.persistence.execution ActionExecution N/A __all__ N/A purge_executions N/A DONE_STATES N/A N/A action_constants LIVEACTION_STATUS_SUCCEEDED N/A action_constants LIVEACTION_STATUS_FAILED N/A action_constants LIVEACTION_STATUS_TIMED_OUT N/A action_constants LIVEACTION_STATUS_CANCELED purge_executions N/A N/A logger timestamp action_ref purge_incomplete N/A None False N/A N/A 
    :param timestamp: Exections older than this timestamp will be deleted.
    :type timestamp: ``datetime.datetime

    :param action_ref: Only delete executions for the provided actions.
    :type action_ref: ``str``

    :param purge_incomplete: True to also delete executions which are not in a done state.
    :type purge_incomplete: ``bool``
     N/A N/A timestamp N/A N/A N/A ValueError Specify a valid timestamp to purge. N/A N/A N/A logger info N/A Purging executions older than timestamp: %s N/A N/A timestamp strftime %Y-%m-%dT%H:%M:%S.%fZ N/A filters N/A N/A purge_incomplete N/A N/A N/A filters N/A start_timestamp__lt timestamp N/A N/A N/A filters N/A end_timestamp__lt timestamp N/A N/A filters N/A start_timestamp__lt timestamp N/A N/A filters N/A status N/A $in DONE_STATES N/A exec_filters N/A N/A copy copy filters N/A action_ref N/A N/A N/A exec_filters N/A action__ref action_ref N/A liveaction_filters N/A N/A copy deepcopy filters N/A action_ref N/A N/A N/A liveaction_filters N/A action action_ref N/A N/A N/A N/A N/A ActionExecution delete_by_query exec_filters N/A N/A N/A InvalidQueryError N/A e N/A N/A msg N/A Bad query (%s) used to delete execution instances: %sPlease contact support. N/A exec_filters N/A str e N/A N/A InvalidQueryError msg N/A N/A N/A N/A N/A logger exception Deletion of execution models failed for query with filters: %s. exec_filters N/A N/A N/A N/A N/A LiveAction delete_by_query liveaction_filters N/A N/A N/A InvalidQueryError N/A e N/A N/A msg N/A Bad query (%s) used to delete liveaction instances: %sPlease contact support. N/A liveaction_filters N/A str e N/A N/A InvalidQueryError msg N/A N/A N/A N/A N/A logger exception Deletion of liveaction models failed for query with filters: %s. liveaction_filters N/A zombie_execution_instances N/A len N/A N/A ActionExecution query exec_filters N/A zombie_liveaction_instances N/A len N/A N/A LiveAction query liveaction_filters N/A N/A N/A zombie_execution_instances 0 N/A zombie_liveaction_instances 0 N/A N/A N/A N/A logger error Zombie execution instances left: %d. zombie_execution_instances N/A N/A N/A logger error Zombie liveaction instances left: %s. zombie_liveaction_instances N/A N/A N/A logger info All execution models older than timestamp %s were deleted. timestamp N/A