Release database connections after updating build statuses.
This commit is contained in:
parent
543bf21e6b
commit
0011ddda16
3 changed files with 43 additions and 46 deletions
|
@ -76,7 +76,7 @@ class StatusHandler(object):
|
|||
yield From(self._append_log_message(phase, self._build_logs.PHASE, extra_data))
|
||||
|
||||
# Update the repository build with the new phase
|
||||
raise Return(self._build_model.update_phase(self._uuid, phase))
|
||||
raise Return(self._build_model.update_phase_then_close(self._uuid, phase))
|
||||
|
||||
def __enter__(self):
|
||||
return self._status
|
||||
|
|
Reference in a new issue