Skip to content

Add configurable timeout for session.post() requests in remote.py #268

Description

@SkipperNZ

We are adapting SWE-Agent to solve Java tasks.
When the agent tries to build a project using Gradle, larger projects often fail due to timeout issues.

Currently, in runtime/remote.py, the requests are sent via the method:

async def _request()

Inside this method, the session.post() call does not specify a timeout parameter, which means it uses the default value of 300 seconds.
For larger projects, this is insufficient and causes premature failures.

I can merge default timeout in config.py

timeout_request: float = 300.0

And set in in _request

timeout=aiohttp.ClientTimeout(total=self._config.timeout_request)

If this approach looks good, i can merge this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions