HF RL Explorer

Build a RetrySession class that extends requests.Session to add automatic retry logic with configurable…

Build a RetrySession class that extends requests.Session to add automatic retry logic with configurable…: a task in repo2rlenv-code-instruct (Harbor dataset). RetrySession should: 1. Accept a max retries parameter (default 3 ) in its constructor. 2. Override the request method so that if the…

The task

`RetrySession` should: 1. Accept a `max_retries` parameter (default `3`) in its constructor. 2. Override the `request` method so that if the response status code is in a configurable `retry_on` set (default: `{500, 502, 503, 504}`), it retries the request up to `max_retries` times. 3. Track the total number of retry…

Part of FineEnvs/repo2rlenv-code-instruct.