Skip to content

Commit

Permalink
termination: don't loop server till transaction is committed
Browse files Browse the repository at this point in the history
Related to #16.
  • Loading branch information
praiskup committed Jun 5, 2019
1 parent a4ec009 commit cc1b329
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion resallocserver/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,4 @@ def closeTicket(self, ticket_id):
if not ticket:
raise ServerAPIException("no such ticket {0}".format(ticket_id))
ticket.state = TState.CLOSED
self.sync.ticket.set()
self.sync.ticket.set()
2 changes: 1 addition & 1 deletion resallocserver/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def close(self):
session.add(resource)
if resource.id_in_pool_object:
session.delete(resource.id_in_pool_object)
self.event.set()
self.event.set()

def job(self):
id_in_pool = None
Expand Down

0 comments on commit cc1b329

Please sign in to comment.