Implement a RetryingSession class in task module.py that subclasses requests.Session and adds automatic…
Implement a RetryingSession class in task module.py that subclasses requests.Session and adds automatic…: a task in repo2rlenv-code-instruct (Harbor dataset). RetryingSession must accept username , password , and max retries (default 3) in its constructor. It overrides the request method so that…
The task
`RetryingSession` must accept `username`, `password`, and `max_retries` (default 3) in its constructor. It overrides the `request` method so that if the underlying `requests.Session.request` raises a `requests.exceptions.ConnectionError`, it retries up to `max_retries` times before re-raising. Between retries, no…
Part of FineEnvs/repo2rlenv-code-instruct.