Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retry generator #11

Open
graingert opened this issue Oct 26, 2016 · 2 comments
Open

retry generator #11

graingert opened this issue Oct 26, 2016 · 2 comments

Comments

@graingert
Copy link

I have a generator:

def push(client, image_tag):
    image, tag = image_tag
    extra = {'event': 'push', 'image': image}

    for evt in client.push(image, tag, stream=True):
        d = compat.json_loads(evt)
        d.update(extra)
        yield d

And if I get a socket error while iterating from the socket, I'd like to retry a few times.

@purplehat7
Copy link

This seems to be related to #23

@umrashrf
Copy link

umrashrf commented Jun 5, 2019

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants