alces-software / adminware

A sandbox CLI for running commands remotely across nodes
1 stars 0 forks source link

Feat/tool status #124

Closed DavidMarchant closed 5 years ago

DavidMarchant commented 5 years ago

Fixes #105 Like node-status but for viewing recent history of a single tool on each node

One argument - TOOL - uses click_tool.command to generate auto-completion results Example output:

adminware> view tool-status steve                                                       
╔════════════╦═══════════╦════════╦═══════════╦════════════════════════════╦══════════╗ 
║ Node       ║ Exit Code ║ Job ID ║ Arguments ║ Date                       ║ No. Runs ║ 
╠════════════╬═══════════╬════════╬═══════════╬════════════════════════════╬══════════╣ 
║ localhost  ║ None      ║ 152    ║ None      ║ 2018-10-31 15:22:14.357953 ║ 2        ║ 
╠════════════╬═══════════╬════════╬═══════════╬════════════════════════════╬══════════╣ 
║ test_node  ║ None      ║ 224    ║ dsadsa    ║ 2018-10-31 16:57:23.426179 ║ 6        ║ 
╠════════════╬═══════════╬════════╬═══════════╬════════════════════════════╬══════════╣ 
║ test_node2 ║ None      ║ 148    ║ None      ║ 2018-10-31 15:19:49.956878 ║ 4        ║ 
╚════════════╩═══════════╩════════╩═══════════╩════════════════════════════╩══════════╝ 
DavidMarchant commented 5 years ago

How does this look to you @WilliamMcCumstie ? I'm not sure it's optimal but I'm not really sure

After your feedback's back we can deal with that merge conflict

WilliamMcCumstie commented 5 years ago

Rebased on develop to resolve conflicts

WilliamMcCumstie commented 5 years ago

@DavidMarchant, I have made a few changes to the naming. I have also opened an issue #128 about jod_data.

WilliamMcCumstie commented 5 years ago

Otherwise this is good to merge