MCPcopy Index your code
hub / github.com/feast-dev/feast / cleanup

Method cleanup

sdk/python/feast/diff/apply_progress.py:172–185  ·  view source on GitHub ↗

Clean up all progress bars. Should be called in finally blocks.

(self)

Source from the content-addressed store, hash-verified

170 self.completed_phases += 1
171
172 def cleanup(self):
173 """Clean up all progress bars. Should be called in finally blocks."""
174 if self.phase_progress:
175 try:
176 self.phase_progress.close()
177 except (AttributeError, TypeError):
178 pass
179 self.phase_progress = None
180 if self.overall_progress:
181 try:
182 self.overall_progress.close()
183 except (AttributeError, TypeError):
184 pass
185 self.overall_progress = None

Callers 5

_apply_diffsMethod · 0.80
search_test_appFunction · 0.80
fastapi_test_appFunction · 0.80

Calls 1

closeMethod · 0.45

Tested by 4

search_test_appFunction · 0.64
fastapi_test_appFunction · 0.64