Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ transport:
connect_seconds: 10.0
read_seconds: 120.0
retry:
max_attempts: 10
max_attempts: 20
backoff_seconds: 2
```

Expand Down Expand Up @@ -174,7 +174,7 @@ The current V1 forecast request contract is:

V1 column descriptors support the server fields `name`, `modality`, `role`, `nullable`, `vocabulary_size`, `level_count`, `mapping`, `lower_bound`, `upper_bound`, `time_value_kind`, `time_value_scale_seconds`, `time_value_use_local_normalized_time`, `time_value_calendar_id`, and `time_value_timezone`.

DataFrame helpers and the notebook examples are available through one optional extra that pulls in `pandas` and `yfinance` (the latter powers the Yahoo Finance download in `notebooks/forecast_trading.ipynb`):
DataFrame helpers and the notebook examples are available through one optional extra that pulls in `pandas`:

```bash
uv add "jointfm-client[notebooks]"
Expand Down
3 changes: 2 additions & 1 deletion config.sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ transport:
connect_seconds: 10.0
read_seconds: 120.0
retry:
max_attempts: 10
max_attempts: 20
backoff_seconds: 2
max_backoff_seconds: 60.0
status_codes:
- 408
- 429
- 470
- 500
- 502
- 503
Expand Down
567 changes: 0 additions & 567 deletions notebooks/forecast_trading.ipynb

This file was deleted.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ jointfm-client = "jointfm_client.cli:main"
[project.optional-dependencies]
notebooks = [
"pandas>=3.0.2",
"yfinance>=0.2,<1",
]

[dependency-groups]
Expand Down
7 changes: 5 additions & 2 deletions src/jointfm_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,13 @@ def _validate_positive_finite(cls, value: float) -> float:
class RetryConfig(_ConfigModel):
"""Default retry policy for transient HTTP failures."""

max_attempts: int = 10
max_attempts: int = 20
backoff_seconds: float = 2
max_backoff_seconds: float = 60.0
status_codes: tuple[int, ...] = (408, 429, 500, 502, 503, 504)
# 470 is DataRobot's non-standard "prediction was not successful" code,
# returned while a deployment's custom model is stopped or still warming
# up; retrying bridges warm-up windows after a deployment (re)start.
status_codes: tuple[int, ...] = (408, 429, 470, 500, 502, 503, 504)

@field_validator("max_attempts")
@classmethod
Expand Down
1 change: 0 additions & 1 deletion tests/test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ def test_example_notebooks_start_with_bootstrap_cell() -> None:
"forecast_mean.ipynb",
"forecast_quantiles.ipynb",
"forecast_samples.ipynb",
"forecast_trading.ipynb",
"pandas_result_conversion.ipynb",
"predict_json.ipynb",
"service_health.ipynb",
Expand Down
230 changes: 3 additions & 227 deletions uv.lock

Large diffs are not rendered by default.

Loading