def _get_all_ret_events_after_time(masters, minions, event_listener, start_time):
    """
    Get all the ret events that happened after `start_time`
    """
    minion_pattern = "salt/job/*/ret/{}"
    events = []

    for minion in minions:
        tag = minion_pattern.format(minion.id)
        matchers = [(master.id, tag) for master in masters]
        ret_events = event_listener.get_events(matchers, after_time=start_time)
        events.append(ret_events)

    return tuple(events)