dwavesystems / dwave-cloud-client

A minimal implementation of the REST interface used to communicate with D-Wave Solver API (SAPI) servers.
https://docs.ocean.dwavesys.com/projects/cloud-client/en/stable/
Apache License 2.0
59 stars 40 forks source link

Add long polling support #648

Closed randomir closed 1 month ago

randomir commented 1 month ago

Recently SAPI added support for long polling calls on problem status endpoints.

Long polling behavior is activated by appending timeout=<sec> query parameter.

Default value for timeout is 1 second, and maximum allowed value is 30 seconds.

In addition to short polling with exponential back-off, we want to add long-polling as polling schedule strategy, and eventually make it the default.