Release database connections after updating build statuses.

This commit is contained in:
Jake Moshenko 2017-07-26 12:04:04 -04:00
parent 543bf21e6b
commit 0011ddda16
3 changed files with 43 additions and 46 deletions

View file

@ -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