You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had an issue where kubernetes shut down the node server to move it, but it took a long time for it to exit, then the new one started up but it's tokens were invalid by the time it tried to refresh them because the old one had done a refresh.
So need to create a wait_for_update function which:
Checks that our current token is the latest token, in case someone already refreshed it
Checks if someone else is updating the token, if not, then put info in the DB to say we are updating
If so waits for other to finish and passes back the new token
Needs to time out based on the time the first one started the update
I think this catches everything, except a race condition that can occur at the start before we "lock" the db.
The text was updated successfully, but these errors were encountered:
We had an issue where kubernetes shut down the node server to move it, but it took a long time for it to exit, then the new one started up but it's tokens were invalid by the time it tried to refresh them because the old one had done a refresh.
So need to create a wait_for_update function which:
I think this catches everything, except a race condition that can occur at the start before we "lock" the db.
The text was updated successfully, but these errors were encountered: