Do not stop watching a build pod's state changes
If a client disconnects from the build log we have to continue to watch
for status changes of the build pod in order to clean it up when it
completes or fails.
@@ -155,10 +155,8 @@ class Build:
if f['type'] == 'DELETED':
self.progress('pod.phasechange', 'Deleted')
return
- if self.stop_event.is_set():
- app_log.info("Stopping watch of %s", self.name)
- return
self.pod = f['object']
+ if not self.stop_event.is_set():
self.progress('pod.phasechange', self.pod.status.phase)
if self.pod.status.phase == 'Succeeded':
self.cleanup()
