관리-도구
편집 파일: main_loop.cpython-311.pyc
� �Cgg � �j � d dl Z d dlZd dlZd dlmZmZmZmZmZm Z d dl mZ dZ G d� de � � ZdS )� N)�DbRecoveredException�DbRecoverFailedException�PluginExecutionException�PluginTimeoutException�SameProcessPluginExecutor�SeparateProcessPluginExecutor)�ConfigError�iseletskc �P � e Zd Z d d�Zd� Zed� � � Zd� Zdd�Zd � Z dS )�MainLoop� NTc �< � || _ || _ || _ d| _ |�g | _ n|| _ |� dd� � | _ || _ t j d� � | _ |rt ||� � | _ nt |� � | _ || _ dS )a� :param config: :param lve_data: data being collected, used and modified by plugins during main loop execution. :param interval: update interval in seconds :param plugins: list of plugins :param plugin_timeout: time in seconds to let plugin be executed :param str profiling_log: if not None -- file to write profiling info :return: FN�aggregation_period�<