Skip to content

Commit fa45700

Browse files
author
Roger Lam
authored
fix(workflow): print job name when requesting workflow logs (#370)
1 parent 69463e4 commit fa45700

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gradient/cli/workflows.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ def list_logs(ctx, api_key, workflow_id, workflow_log_id, run, line, limit, opti
188188
workflow_run = getRunCommand.get_instance(workflow_id, run)
189189
try:
190190
jobs = workflow_run['status']['jobs']
191-
for job in jobs.values():
191+
for job_name, job in jobs.items():
192192
logId = job['logId']
193+
click.echo(f'Job Name: {job_name}')
193194
command.execute(logId, line, limit, follow)
194195
except KeyError:
195196
pass

0 commit comments

Comments
 (0)