retry icon indicating copy to clipboard operation
retry copied to clipboard

retry generator

Open graingert opened this issue 9 years ago • 2 comments

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.

graingert avatar Oct 26 '16 11:10 graingert

This seems to be related to https://github.com/invl/retry/issues/23

purplehat7 avatar Nov 21 '18 17:11 purplehat7

👍

umrashrf avatar Jun 05 '19 14:06 umrashrf