Skip to content

Commit f09fbee

Browse files
committed
Lint Black
1 parent 5d0bc27 commit f09fbee

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/bloqade/analog/task/exclusive.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,14 @@ def fetch(self):
246246

247247
return self
248248

249-
250-
def pull(self,poll_interval:float=20):
249+
def pull(self, poll_interval: float = 20):
251250
"""
252251
Blocking pull to get the task result.
253252
poll_interval is the time interval to poll the task status.
254253
Please ensure that it is relatively large, otherwise
255254
the server could get overloaded with queries.
256255
"""
257-
256+
258257
while True:
259258
if self._task_result_ir.task_status is QuEraTaskStatusCode.Unsubmitted:
260259
raise ValueError("Task ID not found.")
@@ -272,7 +271,7 @@ def pull(self,poll_interval:float=20):
272271
if status in [QuEraTaskStatusCode.Completed, QuEraTaskStatusCode.Partial]:
273272
self._task_result_ir = self._http_handler.fetch_results(self._task_id)
274273
return self
275-
274+
276275
time.sleep(poll_interval)
277276

278277
def cancel(self):

0 commit comments

Comments
 (0)