Skip to content

Commit

Permalink
Added job label to complex view, changed creation time to last update…
Browse files Browse the repository at this point in the history
… in complex view
  • Loading branch information
Will-Cross1 committed Oct 23, 2024
1 parent 398005d commit 58f276c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nlds_utils/nlds_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,9 @@ def print_complex_monitor(records_dict_list, stat_string):
click.echo(f"{'':<4}{'user':<16}: {record['user']}")
click.echo(f"{'':<4}{'group':<16}: {record['group']}")
click.echo(f"{'':<4}{'action':<16}: {record['api_action']}")
click.echo(f"{'':<4}{'job label':<16}: {record['job_label']}")
click.echo(f"{'':<4}{'transaction id':<16}: {record['transaction_id']}")
click.echo(f"{'':<4}{'creation time':<16}: {(record['creation_time'])}")
click.echo(f"{'':<4}{'last update':<16}: {(record['creation_time'])}")
click.echo(f"{'':<4}{'state':<16}: {record['state']}")

warn_str = ""
Expand Down
3 changes: 2 additions & 1 deletion tests/nlds_utils/test_nlds_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,9 @@ def generate_complex_expected_output(record_list, stat_string):
output.append(f"{'':<4}{'user':<16}: {record.user}")
output.append(f"{'':<4}{'group':<16}: {record.group}")
output.append(f"{'':<4}{'action':<16}: {record.api_action}")
output.append(f"{'':<4}{'job label':<16}: {record.job_label}")
output.append(f"{'':<4}{'transaction id':<16}: {record.transaction_id}")
output.append(f"{'':<4}{'creation time':<16}: {record.creation_time}")
output.append(f"{'':<4}{'last update':<16}: {record.creation_time}")
state = record.get_state()
output.append(f"{'':<4}{'state':<16}: {state.name}")

Expand Down

0 comments on commit 58f276c

Please sign in to comment.