Closed jahn-michael closed 2 years ago
Found a way to get this working. Problem of the code above was a misunderstanding on my side how python generators work. Sorry for the bothering you with this.
Apologies for not getting back to your earlier, glad you got it working properly.
Hello,
I have a problem where I can't scandir the same directory twice in an interval of 24h. After I let the script crash and it is restarted everything works fine again. For me it seems, that some state of the previous connection seems to survive even after (or without) explicitly resetting the connection cache.
I also tried it w/o the rest_connection_cache() as well as w/ skip_dfs=True|False to no avail. It seems it is keeping some of the state from the previous connection and then everything falls to pieces.
Do you have any idea what I could try to make it work? Is there a way to get rid of any state the library supposedly maintains? This definitely works if the process is crashing and simply restarted.
Thanks in advance for any insight on this.