(self, user, execution_id)
| 697 | @check_authorization |
| 698 | @inject_user |
| 699 | def get(self, user, execution_id): |
| 700 | if is_empty(execution_id): |
| 701 | respond_error(self, 400, 'Execution id is not specified') |
| 702 | return |
| 703 | |
| 704 | try: |
| 705 | history_entry = self.application.execution_logging_service.find_history_entry(execution_id, user.user_id) |
| 706 | except AccessProhibitedException: |
| 707 | respond_error(self, 403, 'Access to execution #' + str(execution_id) + ' is prohibited') |
| 708 | return |
| 709 | |
| 710 | if history_entry is None: |
| 711 | respond_error(self, 400, 'No history found for id ' + execution_id) |
| 712 | return |
| 713 | |
| 714 | log = self.application.execution_logging_service.find_log(execution_id) |
| 715 | if is_empty(log): |
| 716 | LOGGER.warning('No log found for execution ' + execution_id) |
| 717 | |
| 718 | running = self.application.execution_service.is_running(history_entry.id, user) |
| 719 | long_log = to_long_execution_log(history_entry, log, running) |
| 720 | self.write(json.dumps(long_log)) |
| 721 | |
| 722 | |
| 723 | @tornado.web.stream_request_body |
nothing calls this directly
no test coverage detected