@classmethod
def cleanup(cls, time_ago=None):
    """
        Deletes all log entries older than the given date.
        """
    q = cls.objects.all()
    if time_ago:
        q = q.filter(run_start_datetime__lte=time_ago)
    q.delete()
