grr/server/grr_response_server/db.py
def DeleteOldClientStats(self,
                           yield_after_count,
                           retention_time = None
                          ):
    """Deletes ClientStats older than a given timestamp.

    This function yields when no more ClientStats can be deleted or the number
    of deleted ClientStats equals yield_after_count.

    Args:
      yield_after_count: A positive integer, representing the maximum number of
        deleted entries, after which this function must yield to allow
        heartbeats.
      retention_time: An RDFDateTime representing the oldest create_time of
        ClientStats that remains after deleting all older entries. If not
        specified, defaults to Now() - db.CLIENT_STATS_RETENTION.

    Yields:
      The number of ClientStats that were deleted since the last yield.
    """
Deletes ClientStats older than a given timestamp.

    This function yields when no more ClientStats can be deleted or the number
    of deleted ClientStats equals yield_after_count.

    Args:
      yield_after_count: A positive integer, representing the maximum number of
        deleted entries, after which this function must yield to allow
        heartbeats.
      retention_time: An RDFDateTime representing the oldest create_time of
        ClientStats that remains after deleting all older entries. If not
        specified, defaults to Now() - db.CLIENT_STATS_RETENTION.

    Yields:
      The number of ClientStats that were deleted since the last yield.
    
Deletes ClientStats older than a given timestamp.
This function yields when no more ClientStats can be deleted or the number
of deleted ClientStats equals yield_after_count.
Deletes ClientStats older than a given timestamp . This function yields when no more ClientStats can be deleted or the number of deleted ClientStats equals yield_after_count .
def DeleteOldClientStats(self,
                           yield_after_count,
                           retention_time = None
                          ):
def DeleteOldClientStats ( self , yield_after_count , retention_time = None ) :
Deletes ClientStats older than a given timestamp.
Deletes ClientStats older than a given timestamp .
"""Deletes ClientStats older than a given timestamp.

    This function yields when no more ClientStats can be deleted or the number
    of deleted ClientStats equals yield_after_count.

    Args:
      yield_after_count: A positive integer, representing the maximum number of
        deleted entries, after which this function must yield to allow
        heartbeats.
      retention_time: An RDFDateTime representing the oldest create_time of
        ClientStats that remains after deleting all older entries. If not
        specified, defaults to Now() - db.CLIENT_STATS_RETENTION.

    Yields:
      The number of ClientStats that were deleted since the last yield.
    """
The number of ClientStats that were deleted since the last yield.
The number of ClientStats that were deleted since the last yield .
self
yield_after_count
A positive integer, representing the maximum number of
deleted entries, after which this function must yield to allow
heartbeats.
A positive integer representing the maximum number of deleted entries after which this function must yield to allow heartbeats .
retention_time
An RDFDateTime representing the oldest create_time of
ClientStats that remains after deleting all older entries. If not
specified, defaults to Now() - db.CLIENT_STATS_RETENTION.
An RDFDateTime representing the oldest create_time of ClientStats that remains after deleting all older entries . If not specified defaults to Now () - db . CLIENT_STATS_RETENTION .