Skip to content

Commit c907494

Browse files
authored
fix(workflows): display log id of a started workflow PLA-374 (#360)
1 parent 2e802fb commit c907494

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gradient/commands/workflows.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ def execute(self, spec_path=None, input_path=None, workflow_id=None, cluster_id=
7777

7878
workflow = self.client.run_workflow(
7979
spec=spec, inputs=inputs, workflow_id=workflow_id, cluster_id=cluster_id)
80+
81+
logId = workflow.get('status', {}).get('logId')
82+
if logId is not None:
83+
self.logger.log("Created workflow run {}".format(logId))
8084
return workflow
8185

8286

0 commit comments

Comments
 (0)