Skip to content

Commit d440a83

Browse files
authored
init (#356)
1 parent 3606359 commit d440a83

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gradient/api_sdk/clients/workflow_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def create(self, name, project_id):
1919
workflow = repository.create(name=name, project_id=project_id)
2020
return workflow
2121

22-
def run_workflow(self, spec, inputs, workflow_id, cluster_id):
22+
def run_workflow(self, spec, inputs, workflow_id, cluster_id=None):
2323
"""Create workflow with spec
2424
2525
:param obj spec: workflow spec
@@ -59,7 +59,6 @@ def get(self, workflow_id):
5959
repository = self.build_repository(repositories.GetWorkflow)
6060
return repository.get(id=workflow_id)
6161

62-
6362
def list_runs(self, workflow_id):
6463
"""List workflows runs by workflow id
6564

0 commit comments

Comments
 (0)