Iter to list all the jobs events.

def iter(context, sequence, limit=10):
    """Iter to list all the jobs events."""
    params = {'limit': limit,
              'offset': 0}
    uri = '%s/%s/%s' % (context.dci_cs_api, RESOURCE, sequence)

    while True:
        j = context.session.get(uri, params=params).json()
        if len(j['jobs_events']):
            for i in j['jobs_events']:
                yield i
        else:
            break
        params['offset'] += params['limit']