Dump metrics from the workflow system.
(self, line)
| 835 | pass |
| 836 | |
| 837 | def do_dump(self, line): |
| 838 | """Dump metrics from the workflow system.""" |
| 839 | status = self.machine.dump() |
| 840 | accepted = status.get('commandStatus', {}).get('accepted', False) |
| 841 | if accepted: |
| 842 | response = status.pop("response", None) |
| 843 | print(json.dumps(status, indent=4)) |
| 844 | if accepted and response: |
| 845 | print(json.dumps(response, indent=None)) |
| 846 | |
| 847 | def do_configure(self, line): |
| 848 | """Configure the workflow machine.""" |