Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
Print more workflow status information to console
Browse files Browse the repository at this point in the history
  • Loading branch information
hackermd committed Jul 16, 2017
1 parent e249845 commit 92e55a6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/python/tmclient/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2232,6 +2232,8 @@ def add_row_recursively(data, table, i):
data['id'],
data['name'],
data['type'],
data['created_at'],
data['updated_at'],
data['state'],
'{0:.2f}'.format(data['percent_done']),
data['exitcode'] if data['exitcode'] is not None else '',
Expand All @@ -2245,8 +2247,10 @@ def add_row_recursively(data, table, i):
add_row_recursively(subtd, table, i+1)

t = PrettyTable([
'ID', 'Name', 'Type', 'State', 'Done (%)', 'ExitCode',
'Time (HH:MM:SS)', 'CPU Time (HH:MM:SS)', 'Memory (MB)'
'ID', 'Name', 'Type', 'Created (YYYY-MM-DD HH:MM:SS)',
'Finished (YYYY-MM-DD HH:MM:SS)', 'State', 'Done (%)',
'Exitcode', 'Wall Time (HH:MM:SS)', 'CPU Time (HH:MM:SS)',
'Memory (MB)'
])
t.align['ID'] = 'l'
t.align['Name'] = 'l'
Expand Down

0 comments on commit 92e55a6

Please sign in to comment.