Skip to content

Commit

Permalink
add docstrings for injected methods
Browse files Browse the repository at this point in the history
  • Loading branch information
madhur-ob committed Nov 7, 2024
1 parent f4ebc03 commit 3fe43d7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions metaflow/plugins/argo/argo_workflows_deployer_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,23 @@ class ArgoWorkflowsDeployedFlow(DeployedFlow):

@classmethod
def from_deployment(cls, identifier: str, metadata: Optional[str] = None):
"""
Retrieves a `ArgoWorkflowsDeployedFlow` object from an identifier and optional
metadata.
Parameters
----------
identifier : str
Deployer specific identifier for the workflow to retrieve
metadata : str, optional, default None
Optional deployer specific metadata.
Returns
-------
ArgoWorkflowsDeployedFlow
A `ArgoWorkflowsDeployedFlow` object representing the
deployed flow on argo workflows.
"""
client = ArgoClient(namespace=KUBERNETES_NAMESPACE)
workflow_template = client.get_workflow_template(identifier)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ class StepFunctionsDeployedFlow(DeployedFlow):

@classmethod
def from_deployment(cls, identifier: str, metadata: Optional[str] = None):
"""
This method is not currently implemented for Step Functions.
Raises
------
NotImplementedError
This method is not implemented for Step Functions.
"""
raise NotImplementedError(
"from_deployment is not implemented for StepFunctions"
)
Expand Down

0 comments on commit 3fe43d7

Please sign in to comment.