| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib/python3.11/site-packages/ssa/modules/__pycache__/ |
Upload File : |
�
$F�i�$ � �" � d Z ddlZddlZddlZddlZddlZddlmZmZmZ ddl m
Z
mZmZ ddl
mZmZ ddlmZmZ ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ d
dlmZmZm Z m!Z!m"Z"m#Z# d
dl$m%Z% d
dl&m'Z'm(Z(m)Z) e' G d� de� � � � Z*dS )z-
This module contains RequestProcessor class
� N)�datetime� timedelta�timezone)�Thread�RLock�current_thread)�Callable�Any)�Queue�Empty)�OperationalError� )�
AutoTracer)�Common)�
DecisionMaker)�StatisticsSender� )�
session_scope�setup_database�
RequestResult�cleanup_old_data�restore_database�is_malformed_database)�SSAError)� singleton� url_split�switch_schedstatsc �� � � e Zd ZdZdZdZd� fd� Zed� � � Zde fd�Z
dd
�Zdd�Zdd�Z
d
ed efd�Zddefd�Zd� Zd� Zeded efd�� � Zd� Zd� Zd� Zde d dfd�Zd� Zd� Z� xZS ) �RequestProcessorz^
SSA Request processor implementation.
Only one instance is allowed to be created
�d � Nc �� �� t � � � � � t j d� � | _ | j � dt � � t d�� � |r|n
t � � | _ t � � | _ t | j �� � | _
t � � | _ t! | j �� � | _ t% � � | _ g | _ | � � � | � � � t/ j t. j | j � � t/ j t. j | j � � d S )N�
req_processorzProcessor enabled: %sT��enabled)�engine)�super�__init__�logging� getLogger�logger�info�__package__r r r&