harvest: get a new access token when Gmail refuses the walk's

An access token lasts an hour. When it expired mid-walk, Gmail refused the walk's next request and the walk waited out its 60 s back-off; the token was refreshed only once some other request was refused too. The walk now asks the session for a new token on the first refusal and goes on once the session has it, as it waits while the session refreshes. Refused again, it backs off as for any other failure.


Author rockorager.dev
Date Commit Parent 59b907c0
+32 -4
2 changed files
+32 -4
2 changed files