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 4 months ago

randomir commented 4 months 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.