Skip to content

fix: report REQUEST_TIMEOUT expiry as a worker error - #388

Merged
velaraptor-runpod merged 1 commit into
runpod-workers:mainfrom
irisfield:fix/request-timeout-error
Dec 1, 2026
Merged

velaraptor-runpod merged 1 commit into
runpod-workers:mainfrom
irisfield:fix/request-timeout-error

Conversation

@irisfield

Copy link
Copy Markdown
Contributor

With REQUEST_TIMEOUT=3 on runpod/worker-v1-vllm:v2.32.1, a job that generates for longer fails with an error that starts handler: followed by a traceback, and the worker log records "message": "". Neither names REQUEST_TIMEOUT.

handler catches only aiohttp.ClientError around the vLLM request. When REQUEST_TIMEOUT expires, aiohttp raises asyncio.TimeoutError, which is not a ClientError and has an empty message, so it propagates out of handler.

handler now catches asyncio.TimeoutError, logs it with logging.exception, and yields a worker_error saying that the request to vLLM timed out after REQUEST_TIMEOUT seconds. The job still ends as FAILED.

New tests in TestRequestTimeout run handler against a local aiohttp server: a timeout before the response headers, a timeout in the middle of a stream, the log record, and the existing connection error path.

Additional context

The traceback moves from the job's error field to the worker log.

@velaraptor-runpod
velaraptor-runpod self-requested a review December 1, 2026 03:05
@velaraptor-runpod
velaraptor-runpod merged commit 61e9ee7 into runpod-workers:main Dec 1, 2026
6 of 9 checks passed
@irisfield
irisfield deleted the fix/request-timeout-error branch December 1, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants