Skip to content

Commit 4acde4b

Browse files
fix: increase TIMEOUT_MEDIUM from 2m to 5m for LLM tasks (#843)
Topic detection was timing out on longer transcripts when LLM responses are slow. This affects detect_chunk_topic and other LLM-calling tasks that use TIMEOUT_MEDIUM. Co-authored-by: Igor Loskutov <igor.loskutoff@gmail.com>
1 parent a2ed7d6 commit 4acde4b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

server/reflector/hatchet/constants.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ class TaskName(StrEnum):
3535

3636
# Task execution timeouts (seconds)
3737
TIMEOUT_SHORT = 60 # Quick operations: API calls, DB updates
38-
TIMEOUT_MEDIUM = 120 # Single LLM calls, waveform generation
38+
TIMEOUT_MEDIUM = (
39+
300 # Single LLM calls, waveform generation (5m for slow LLM responses)
40+
)
3941
TIMEOUT_LONG = 180 # Action items (larger context LLM)
4042
TIMEOUT_AUDIO = 720 # Audio processing: padding, mixdown
4143
TIMEOUT_HEAVY = 600 # Transcription, fan-out LLM tasks

0 commit comments

Comments
 (0)