Skip to content

bloqade.core.device.future.ApiFetchOptions

← Module overview

classApiFetchOptionssource

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

NameTypeDefaultDescription
subtasks_per_fetchint10
shots_per_fetchint100
poll_interval_initialfloat0.5
poll_interval_maxfloat30.0
poll_interval_factorfloat2.0

Attributes

NameTypeDescription
subtasks_per_fetchintNumber of subtasks to request per results page. Defaults to 10.
shots_per_fetchintNumber of shots to request per subtask shot page. Defaults to 100.
poll_interval_initialfloatInitial delay, in seconds, between status polls. Defaults to 0.5.
poll_interval_maxfloatMaximum polling delay, in seconds. Defaults to 30.0.
poll_interval_factorfloatMultiplier applied to the polling delay after each non-terminal status. Defaults to 2.0.