Perf: retryable mysql connection. (#8858)

### What problem does this PR solve?

### Type of change

- [x] Performance Improvement
This commit is contained in:
Kevin Hu
2025-07-15 19:05:48 +08:00
committed by GitHub
parent 9371d7b19c
commit f2909ea0c4
2 changed files with 45 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class Extractor:
self._language = language
self._entity_types = entity_types or DEFAULT_ENTITY_TYPES
@timeout(60)
@timeout(60*3)
def _chat(self, system, history, gen_conf):
hist = deepcopy(history)
conf = deepcopy(gen_conf)