41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From 620114229af58823e27a370ad2839365b0f4535e Mon Sep 17 00:00:00 2001
|
|
From: xuezhixin <xuezhixin@uniontech.com>
|
|
Date: Mon, 13 Nov 2023 16:05:28 +0800
|
|
Subject: [PATCH] =?UTF-8?q?agent=E8=8E=B7=E5=8F=96abi=E7=9A=84=E6=B6=88?=
|
|
=?UTF-8?q?=E6=81=AF=E9=98=9F=E5=88=97=E8=BF=9B=E5=BA=A6=E4=BF=A1=E6=81=AF?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
sysmig_agent/fork.py | 16 ++++++++++++++++
|
|
1 file changed, 16 insertions(+)
|
|
|
|
diff --git a/sysmig_agent/fork.py b/sysmig_agent/fork.py
|
|
index 615b3d5..8c2f4b6 100644
|
|
--- a/sysmig_agent/fork.py
|
|
+++ b/sysmig_agent/fork.py
|
|
@@ -134,3 +134,19 @@ def timed_task_migrate(task_id, kernel_version):
|
|
time_task_m.shutdown()
|
|
sql_task_statue('3', task_id)
|
|
|
|
+
|
|
+def get_abi_info():
|
|
+ if q.empty():
|
|
+ return None
|
|
+# print("Full :", q.full())
|
|
+# print("Empty :", q.empty())
|
|
+# print("QSize:", q.qsize())
|
|
+ size = int(q.qsize())
|
|
+ i=0
|
|
+ msg = ''
|
|
+ while i < size:
|
|
+ i += 1
|
|
+ msg = q.get()
|
|
+ return msg
|
|
+# if not q.empty():
|
|
+
|
|
--
|
|
2.20.1
|
|
|