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
10 changes: 10 additions & 0 deletions docs/flows.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,16 @@ flow.update_config(
This config will only affect new flow items and not modify existing ones.


### Preheating

If you need low-latency responses for upcoming flow items, you can preheat the system beforehand:

```python
client.flow.preheat()
```

This warms up internal resources so that subsequent flow batches are processed faster. Call it before submitting time-sensitive batches.

### Retrieving Existing Flows

You can retrieve flows by ID or list your recent flows:
Expand Down
6 changes: 6 additions & 0 deletions src/rapidata/rapidata_client/flow/rapidata_flow_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ def find_flows(
for flow in response.items
]

def preheat(self) -> None:
"""Preheat the boost system to reduce latency for upcoming flow items."""
with tracer.start_as_current_span("RapidataFlowManager.preheat"):
logger.debug("Preheating boost")
self._openapi_service.campaign.campaign_api.campaign_boost_preheat_post()

def __str__(self) -> str:
return "RapidataFlowManager"

Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading