bloqade.core.device.future.ApiFetchOptions
← Module overview
class
classApiFetchOptions¶source
bloqade.core.device.future.ApiFetchOptions
Options controlling task polling and result pagination.
Signature
class ApiFetchOptions(subtasks_per_fetch: int = 10, shots_per_fetch: int = 100, poll_interval_initial: float = 0.5, poll_interval_max: float = 30.0, poll_interval_factor: float = 2.0)Parameters
| Name | Type | Default | Description |
|---|---|---|---|
subtasks_per_fetch | int | 10 | |
shots_per_fetch | int | 100 | |
poll_interval_initial | float | 0.5 | |
poll_interval_max | float | 30.0 | |
poll_interval_factor | float | 2.0 |
Attributes
| Name | Type | Description |
|---|---|---|
subtasks_per_fetch | int | Number of subtasks to request per results page. Defaults to 10. |
shots_per_fetch | int | Number of shots to request per subtask shot page. Defaults to 100. |
poll_interval_initial | float | Initial delay, in seconds, between status polls. Defaults to 0.5. |
poll_interval_max | float | Maximum polling delay, in seconds. Defaults to 30.0. |
poll_interval_factor | float | Multiplier applied to the polling delay after each non-terminal status. Defaults to 2.0. |