Skip to content

Commit

Permalink
Convert oid expiration timestamp to datetime.datetime
Browse files Browse the repository at this point in the history
Co-authored-by: DWSR <[email protected]>
Co-authored-by: harrisonfritz <[email protected]>
  • Loading branch information
3 people committed Aug 10, 2023
1 parent d385726 commit 12816cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dask_kubernetes/common/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ async def refresh_oid_token(self):
self.token_expire_ts <= datetime.datetime.now(tz=tzUTC)
):
await self._refresh_oidc(provider)
expires = self.extract_oid_expiration_from_provider(provider=provider)
expires = datetime.datetime.fromtimestamp(
self.extract_oid_expiration_from_provider(provider=provider)
)

await self.create_refresh_task_from_expiration_timestamp(
expiration_timestamp=expires
Expand Down

0 comments on commit 12816cc

Please sign in to comment.