swisstopo / topo-satromo

Erdbeobachtungs-Satellitendaten fürs Trockenheitsmonitoring (SATROMO)
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

pydrive has no valid credentials on long runs #90

Closed davidoesch closed 3 months ago

davidoesch commented 3 months ago

Describe the bug it seems that pydrive gauth token expires after one hour and needs to be-re inizalized.

To Reproduce Steps to reproduce the behavior:

  1. process on prod a large orbit
  2. See error https://github.com/swisstopo/topo-satromo/actions/runs/10173418795

Possible solutions Added a function on prod https://github.com/swisstopo/topo-satromo/commit/5b9576f27a2a8ef4d9d021134b45c9a7e0cabf1f and on dev https://github.com/swisstopo/topo-satromo/commit/93e9504c0ddef10e22fd96f96ad4bad7f68ab992

Additional context Work in progress, currently testing on prod

davidoesch commented 3 months ago

fxied with https://github.com/swisstopo/topo-satromo/commit/5b9576f27a2a8ef4d9d021134b45c9a7e0cabf1f