iterative / iterative/PyDrive2
After one hour get INFO:oauth2client.client:access_token is expired, but requests keep working
- Lenguaje dominante
- Python
- Estrellas
- 670
- Forks
- 75
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Línea de trabajo
No repository file or test is named. Start by tracing the GoogleDrive object's access-token refresh behavior and how that object is passed to multiprocessing workers, then reproduce the one-hour download scenario. Done means the token-expiry messages and multiprocessing behavior have a verified explanation or a documented correction.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- api, authentication
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100