| 206 | return getter(info) |
| 207 | |
| 208 | def cleanup_execution(self, execution_id, user): |
| 209 | try: |
| 210 | self.validate_execution_id(execution_id, user) |
| 211 | except NotFoundException: |
| 212 | return |
| 213 | |
| 214 | executor = self._executors.get(execution_id) |
| 215 | |
| 216 | if not executor.is_finished(): |
| 217 | raise Exception('Executor ' + execution_id + ' is not yet finished') |
| 218 | |
| 219 | executor.cleanup() |
| 220 | self._active_executor_ids.remove(execution_id) |
| 221 | |
| 222 | def add_finish_listener(self, callback, execution_id=None): |
| 223 | if execution_id is None: |