Skip to content

Commit

Permalink
Reduce timeout for collect_offers from 5 -> 1 (#552)
Browse files Browse the repository at this point in the history
Co-authored-by: maaktweluit <[email protected]>
Co-authored-by: Kuba Mazurek <[email protected]>
  • Loading branch information
3 people authored Oct 13, 2021
1 parent a0313db commit 24a111d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions goth/runner/probe/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def collect_results(

while len(results) < num_results:
results = await self.api.activity.control.get_exec_batch_results(
activity_id, batch_id
activity_id, batch_id, timeout=1
)
await asyncio.sleep(1.0)
return results
Expand Down Expand Up @@ -197,7 +197,9 @@ async def wait_for_proposals(
provider_ids = {p.address for p in providers}

while len(proposals) < len(provider_ids):
collected_offers = await self.api.market.collect_offers(subscription_id)
collected_offers = await self.api.market.collect_offers(
subscription_id, timeout=1
)
if collected_offers:
logger.debug(
"collect_offers(%s). collected_offers=%r",
Expand Down

0 comments on commit 24a111d

Please sign in to comment.