Commit dfa66f33 authored by Jiahang Chen's avatar Jiahang Chen
Browse files

add timer

parent 94c8432a
Pipeline #340765 passed with stage
in 14 seconds
......@@ -8,7 +8,7 @@
from s3i.broker import Broker, BrokerREST, BrokerMetaClass
from s3i.messages import ServiceReply
from ml.tools import remove_namespace
import time
from ml.managing_actor import ManagingActor
from ml.tools import BColors
from ml.tools import find_broker_endpoint
......@@ -128,6 +128,7 @@ def __connect_with_idp(self):
# This may take a while so fetch token directly.
idp.run_forever(token_type=TokenType.ACCESS_TOKEN, on_new_token=self.__on_token)
time.sleep(1)
def __on_token(self, token):
self.__access_token = token
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment