| 181 | logger.set_close_callback(lambda: self._write_post_execution_info(log_file_path, exit_code)) |
| 182 | |
| 183 | def get_history_entries(self, user_id, *, system_call=False): |
| 184 | self._renew_files_cache() |
| 185 | |
| 186 | result = [] |
| 187 | |
| 188 | for file in self._ids_to_file_map.values(): |
| 189 | history_entry = self._extract_history_entry(file) |
| 190 | if history_entry is not None and self._can_access_entry(history_entry, user_id, system_call): |
| 191 | result.append(history_entry) |
| 192 | |
| 193 | return result |
| 194 | |
| 195 | def find_history_entry(self, execution_id, user_id): |
| 196 | self._renew_files_cache() |