Commit 25e01390 authored by Łukasz Nowak's avatar Łukasz Nowak

slapgrid: Execute manager even if promise fails

Despite promise failure, managers shall be executed, as often thanks to
running them, promise can be fulfilled.
parent 439b3313
...@@ -1247,10 +1247,10 @@ stderr_logfile_backups=1 ...@@ -1247,10 +1247,10 @@ stderr_logfile_backups=1
finally: finally:
self.logger.removeHandler(partition_file_handler) self.logger.removeHandler(partition_file_handler)
partition_file_handler.close() partition_file_handler.close()
# Run manager tear down, even if something happened, like promise error,
# Run manager tear down # as manager might be used for this
for manager in self._manager_list: for manager in self._manager_list:
manager.instanceTearDown(local_partition) manager.instanceTearDown(local_partition)
# If partition has been successfully processed, write timestamp # If partition has been successfully processed, write timestamp
if timestamp: if timestamp:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment