diff --git a/client/quantum_serverless/core/provider.py b/client/quantum_serverless/core/provider.py index 174a6a459..92ac565b9 100644 --- a/client/quantum_serverless/core/provider.py +++ b/client/quantum_serverless/core/provider.py @@ -325,7 +325,7 @@ def run(self, program: Program, arguments: Optional[Dict[str, Any]] = None) -> J class KuberayProvider(Provider): - """Implements CRUD for Kuberay API server.""" + """(Deprecated) Implements CRUD for Kuberay API server.""" def __init__( self, @@ -337,7 +337,7 @@ def __init__( compute_resource: Optional[ComputeResource] = None, available_compute_resources: Optional[List[ComputeResource]] = None, ): - """Kuberay provider for serverless computation. + """(Deprecated) Kuberay provider for serverless computation. Example: >>> provider = Provider( @@ -361,6 +361,14 @@ def __init__( available_compute_resources: available clusters in provider """ super().__init__(name) + warnings.warn( + "`KuberayProvider` is deprecated " + "and will be removed in v0.3. " + "Please, consider using `GatewayProvider`.", + DeprecationWarning, + stacklevel=2, + ) + self.name = name self.host = host self.token = token