Skip to content

Commit d66cd69

Browse files
author
Rohit Chatterjee
committed
fix docstrings
1 parent 536ec3e commit d66cd69

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

proxy/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ def put_dataflow_v1(deployment_id, payload: DeploymentUpdate2):
492492

493493
@app.get("/proxy/v1/deployments/get_scheduled_flow_runs")
494494
def get_dataflow_scheduled_flow_runs(deployment_id: str):
495-
"""updates a deployment"""
495+
"""fetch scheduled flow-runs for a deployment"""
496+
if not isinstance(deployment_id, str):
497+
raise TypeError("deployment_id must be a string")
496498
try:
497499
res = get_deployment_scheduled_flow_runs(deployment_id)
498500
except Exception as error:

proxy/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def get_deployment(deployment_id: str) -> dict:
726726

727727

728728
def get_deployment_scheduled_flow_runs(deployment_id: str) -> dict:
729-
"""Fetch deployment and its details"""
729+
"""fetch scheduled flow-runs for a deployment"""
730730
if not isinstance(deployment_id, str):
731731
raise TypeError("deployment_id must be a string")
732732
res = prefect_post(

0 commit comments

Comments
 (0)