Stop trying to persist session used for upgrade execution progress

apparently that trick won't work as long as we're waiting in-process
for the upgrade process to complete..
This commit is contained in:
Lance Edgar 2017-08-07 18:50:50 -05:00
parent f46e20c119
commit 4cb4d9b14c

View file

@ -183,9 +183,11 @@ class UpgradeView(MasterView):
def before_create_flush(self, upgrade):
upgrade.created_by = self.request.user
def make_execute_progress(self):
key = '{}.execute'.format(self.get_grid_key())
return SessionProgress(self.request, key, session_type='file')
# TODO: this was an attempt to make the progress bar survive Apache restart,
# but it didn't work... need to "fork" instead of waiting for execution?
# def make_execute_progress(self):
# key = '{}.execute'.format(self.get_grid_key())
# return SessionProgress(self.request, key, session_type='file')
def execute_instance(self, upgrade, user, **kwargs):
session = orm.object_session(upgrade)