fix: release execution controls after callback failure

This commit is contained in:
阿白叔 committed 2026-10-30 08:56:53 +08:00
1 parent 7da623d055
commit 7bdaaeb2ec
2 files changed
+16

No files matched your search

@@ -854,6 +854,11 @@ class TrialTaskCenterWindow(QMainWindow):
except Exception as error:
operation_error = error
self._close_pending = False
if execution:
# A result renderer is part of the worker lifecycle.
# If it fails, release the execution controls just as
# the service failure path does.
self._finish_run()
self.operation_state = self.operation_state.finish(error)
self._show_error(error)
def failed(error):