File tree Expand file tree Collapse file tree
computing/scheduler/model_scheduler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55import certifi
66import requests
7+ import cachetools .func
78
89import fedml
910from fedml .core .mlops .mlops_utils import MLOpsUtils
@@ -32,6 +33,7 @@ def get_instance(args):
3233 return ModelOpsConfigs ._config_instance
3334
3435 @staticmethod
36+ @cachetools .func .ttl_cache (ttl = 600 )
3537 def get_request_params ():
3638 url = fedml ._get_backend_service ()
3739 url = "{}/fedmlOpsServer/configs/fetch" .format (url )
Original file line number Diff line number Diff line change 44
55import certifi
66import requests
7+ import cachetools .func
78
89import fedml
910from fedml .core .mlops .mlops_utils import MLOpsUtils
@@ -41,6 +42,7 @@ def __init__(self):
4142 pass
4243
4344 @staticmethod
45+ @cachetools .func .ttl_cache (ttl = 600 )
4446 def get_request_params ():
4547 url = fedml ._get_backend_service ()
4648 url = f"{ url } /fedmlOpsServer/configs/fetch"
You can’t perform that action at this time.
0 commit comments