Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/provably/handoff/_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run_preprocess(org_id: str, middleware_id: str, table_id: str) -> None:
"""Kick preprocess for the intercepts table and poll until it completes."""
path = f"/api/v1/organizations/{org_id}/middlewares/{middleware_id}/tables/{table_id}/preprocess"
_log.info("preprocess_started")
post_json(path, {})
post_json(path, {"force": True})
retried_force = False
while True:
status = _preprocess_status(get_json(path))
Expand All @@ -99,7 +99,7 @@ def run_preprocess(org_id: str, middleware_id: str, table_id: str) -> None:
post_json(path, {"force": True})
retried_force = True
continue
time.sleep(2)
time.sleep(0.3)


def wait_for_proof_completed(org_id: str, query_id: str, timeout_s: float = 180.0) -> None:
Expand All @@ -114,7 +114,7 @@ def wait_for_proof_completed(org_id: str, query_id: str, timeout_s: float = 180.
return
if status == "failed":
raise RuntimeError(f"Proof generation failed: {proof}")
time.sleep(1.5)
time.sleep(0.1)
raise TimeoutError(f"Proof still not Completed for query {query_id} after {timeout_s}s")


Expand Down
Loading