cloud-pipeline icon indicating copy to clipboard operation
cloud-pipeline copied to clipboard

Automatically refresh API tokens in pipe common

Open tcibinan opened this issue 1 year ago • 0 comments

Relates #3583.

Adds support for refreshable API tokens to pipe common. Additionally, it updates grid engine autoscaler and user synchronisation to use the new functionality.

from pipeline.api.api import PipelineAPI
from pipeline.api.token import StaticToken, RefreshingToken

# using a static token which will eventually expire
api = PipelineAPI()
api = PipelineAPI(token=StaticToken())

# using a refreshing token which will automatically update itself
api = PipelineAPI(token=RefreshingToken())

tcibinan avatar Jun 28 '24 13:06 tcibinan