Skip to content

Commit

Permalink
Immediately release agreement after service instance finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
azawlocki committed Jun 1, 2021
1 parent ec492de commit df60af3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yapapi/executor/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ async def start_worker(agreement: rest.market.Agreement, node_info: NodeInfo) ->
raise
finally:
await self._engine.accept_payment_for_agreement(agreement.id)
await self._job.agreements_pool.release_agreement(agreement.id, False)

loop = asyncio.get_event_loop()

Expand Down

0 comments on commit df60af3

Please sign in to comment.