You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try:
########################################################### @TODO: builtin hook function in every rules packages.########################################################### for _rule in self.rules:# for rule_enable_hook_func in self._rule_enable_hooks:# await rule_enable_hook_func(_rule)# try:# await _rule.enable()# except Exception as e:# self.error_or_exception(# f"Enable rule {_rule!r} failed:", e)# for _rule in self.rules:# for rule_run_hook_func in self._rule_run_hooks:# await rule_run_hook_func(_rule)# _rule_task = asyncio.create_task(_rule.safe_run())# self._rule_tasks.add(_rule_task)# _rule_task.add_done_callback(self._rule_tasks.discard)awaitself.should_exit.wait()
ifhot_reload_taskisnotNone: # pragma: no coverawaithot_reload_taskfinally:
# for _rule in self.rules:# for rule_disable_hook_func in self._rule_disable_hooks:# await rule_disable_hook_func(_rule)# await _rule.disable()
hook types
rule_enable_hook_func
rule_run_hook_func
rule_disable_hook_func
The text was updated successfully, but these errors were encountered:
[
14368
]refactor: Comment hook function while running the rules packagesbuiltin hook function in every rules packages.
fae8d22...14368e5
hook types
The text was updated successfully, but these errors were encountered: