관리-도구
편집 파일: migrate.cpython-311.pyc
� b��f� � � � d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZ d dl m Z d dlmZm Z dZdZd Z e j d � � Zdefd�Zdd �Zdd�ZdS )� N)� get_client)� XRayError)�read_sys_id)�initialize_manager)�remove_xray_inis�clear_dbm_filez*/usr/share/alt-php-xray/running_tasks_listz /usr/share/alt-php-xray/migratedz#/var/log/alt-php-xray/migration.log�migrate�returnc �� � t d� � t � � �� � } | � � � }t � d|� � n# t $ r t � � cY S w xY wd� |d D � � }t � d|� � t t d� � 5 }|� d� |� � � � d d d � � n# 1 swxY w Y |S ) z9 Get list of running tasks and save it into file �lists)� system_idzLoaded tasks: %sc �6 � g | ]}|d dk �|d ��S )�status�running�tracing_task_id� )�.0�ts �S/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/reconfiguration/migrate.py� <listcomp>z!running_tasks.<locals>.<listcomp>&