iterative / iterative/PyDrive2
After one hour get INFO:oauth2client.client:access_token is expired, but requests keep working
- Lingua principale
- Python
- Stelle
- 670
- Fork
- 75
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I'm doing a large job to download approx 50k files from google drive.
After exactly an hour I start to see this message:
INFO:oauth2client.client:access_token is expired. Now: 2020-12-17 23:39:39.355448, token_expiry: 2020-12-17 23:06:32.235919
INFO:oauth2client.client:Updated access_token read from Storage
I have a single instance of GoogleDrive which I pass to all processes.
It seems like there must be a valid token as subsequent requests work fine, even though they continue to display this message.
What's the correct way to deal with this?
I'm using Python's multiprocessing to run many processes in parallel, and pass the GoogleDrive object to each worker process.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.