Spaces:
Sleeping
Sleeping
- src/pipeline/api.py +1 -1
- src/pipeline/cli.py +1 -1
src/pipeline/api.py
CHANGED
|
@@ -42,7 +42,7 @@ class TransportError(RuntimeError):
|
|
| 42 |
class ApiClient:
|
| 43 |
api_key: str
|
| 44 |
concurrency: int = 8
|
| 45 |
-
rps: float =
|
| 46 |
timeout_seconds: float = 30.0
|
| 47 |
max_attempts: int = 5
|
| 48 |
|
|
|
|
| 42 |
class ApiClient:
|
| 43 |
api_key: str
|
| 44 |
concurrency: int = 8
|
| 45 |
+
rps: float = 500.0
|
| 46 |
timeout_seconds: float = 30.0
|
| 47 |
max_attempts: int = 5
|
| 48 |
|
src/pipeline/cli.py
CHANGED
|
@@ -30,7 +30,7 @@ def run(
|
|
| 30 |
help="Download icon assets locally.",
|
| 31 |
),
|
| 32 |
concurrency: int = typer.Option(8, "--concurrency", help="Max concurrent requests."),
|
| 33 |
-
rps: float = typer.Option(
|
| 34 |
output_dir: Optional[Path] = typer.Option(
|
| 35 |
None,
|
| 36 |
"--output-dir",
|
|
|
|
| 30 |
help="Download icon assets locally.",
|
| 31 |
),
|
| 32 |
concurrency: int = typer.Option(8, "--concurrency", help="Max concurrent requests."),
|
| 33 |
+
rps: float = typer.Option(500.0, "--rps", help="Requests per second throttle."),
|
| 34 |
output_dir: Optional[Path] = typer.Option(
|
| 35 |
None,
|
| 36 |
"--output-dir",
|