提交 a5261ea1 authored 作者: Reyhane Askari's avatar Reyhane Askari

speedup in validate function

上级 3cab3849
...@@ -972,11 +972,11 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa ...@@ -972,11 +972,11 @@ class DestroyHandler(toolbox.Bookkeeper): # noqa
# graph might have already changed when we raise the # graph might have already changed when we raise the
# self.fail_validate error. So before raising the error, we # self.fail_validate error. So before raising the error, we
# double check here. # double check here.
# for app in app_err_pairs: for app in app_err_pairs:
# if app in fgraph.apply_nodes: if app in fgraph.apply_nodes:
# self.fast_destroy(app, 'validate') self.fast_destroy(app, 'validate')
for app in fgraph.apply_nodes: # for app in fgraph.apply_nodes:
self.fast_destroy(app, 'validate') # self.fast_destroy(app, 'validate')
self.fail_validate = app_err_pairs self.fail_validate = app_err_pairs
if self.fail_validate: if self.fail_validate:
err = app_err_pairs.values()[0] err = app_err_pairs.values()[0]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论