Closed gordonwatts closed 3 years ago
Also, see https://github.com/iris-hep/opendata-higgs-discovery/issues/9, whcih I think is the same thing.
Turns out the reason for this is on_exception
does not work for async iterators, though it does work fine for async functions!
In fact, the way I've implemented on_exception
makes no sense - you can't really do this - because items will have already been passed out; if you restart the stream then potentially some items will have passed - so in general, this does not work.
However - for us - what we are talking about here is the first item only - these exceptions will happen "early".
Still, I think we need to move where we have the exceptions happen - so a more reasonable place that does the re-try.
This probably means clear the cache: