'Get task logs from the DB from all cells or a particular
cell.
If \'cell_name\' is None or \'\', get responses from all cells.
If \'host\' is not None, filter by host.
If \'state\' is not None, filter by state.
Return a list of Response objects.'

def task_log_get_all(self, ctxt, cell_name, task_name, period_beginning, period_ending, host=None, state=None):

    method_kwargs = dict(task_name=task_name, period_beginning=period_beginning, period_ending=period_ending, host=host, state=state)
    if cell_name:
        message = _TargetedMessage(self, ctxt, 'task_log_get_all', method_kwargs, 'down', cell_name, need_response=True)
        return [message.process()]
    message = _BroadcastMessage(self, ctxt, 'task_log_get_all', method_kwargs, 'down', run_locally=True, need_response=True)
    return message.process()
