Log a warning to troubleshoot luigi restart failure

This commit is contained in:
Lance Edgar 2022-10-31 21:41:01 -05:00
parent c2b2d11141
commit 38e6441b61

View file

@ -118,6 +118,7 @@ class LuigiTaskView(MasterView):
self.request.session.flash("Luigi scheduler has been restarted.") self.request.session.flash("Luigi scheduler has been restarted.")
except Exception as error: except Exception as error:
log.warning("restart failed", exc_info=True)
self.request.session.flash(simple_error(error), 'error') self.request.session.flash(simple_error(error), 'error')
return self.redirect(self.request.get_referrer( return self.redirect(self.request.get_referrer(