iterative / iterative/PyDrive2
After one hour get INFO:oauth2client.client:access_token is expired, but requests keep working
- Vorherrschende Sprache
- Python
- Sterne
- 670
- Forks
- 75
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.