Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
lvestats
/
plugins
/
generic
/
__pycache__
[ HOME ]
Exec
Submit
File Name : cleaners.cpython-311.pyc
� ֈ9h] � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl Z d dlmZm Z d dlmZ d dlmZmZmZmZ dZ G d � d e� � ZdS )� N)�func)�OperationalError)�sessionmaker)�LveStatsPlugin�LveStatsPluginTerminated)�reboot_lock)�history�history_gov�history_x60�incident�shamanc �H � e Zd Zd� Zd� Zd� Zd� Zed� � � Zd� Z d� Z dS ) �HistoryCleanerc � � d| _ d| _ d| _ d| _ d | _ t j d� � | _ d| _ d | _ d S )N� i`T � � r �sqlite) �period�batch�execute_timeout�keep_history_days� db_engine�logging� getLogger�log�db_type� server_id��selfs ��/builddir/build/BUILDROOT/lve-stats-4.2.13-1.el8.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/plugins/generic/cleaners.py�__init__zHistoryCleaner.__init__ sL � ���� �� �!���!#�������$�%5�6�6����������� c � � || _ d S )N)r )r �engines r! � set_db_enginezHistoryCleaner.set_db_engine% s � �����r# c �, � t |� d| j � � � � | _ t |� dd� � � � dz | _ |� d| j � � | _ |� dd� � | _ d S )Nr r �<