Skip to content

Commit

Permalink
Issue 656 | Client: deprecate kuberay provider (Qiskit#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
IceKhan13 authored Jun 21, 2023
1 parent f8a5e36 commit a9287dd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions client/quantum_serverless/core/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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(
Expand All @@ -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
Expand Down

0 comments on commit a9287dd

Please sign in to comment.