ryry-cli 2.43__tar.gz → 2.44__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ryry_cli-2.43 → ryry_cli-2.44}/PKG-INFO +1 -1
- ryry_cli-2.44/ryry/constant.py +5 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/server_func.py +5 -4
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.43 → ryry_cli-2.44}/setup.py +1 -1
- ryry_cli-2.43/ryry/constant.py +0 -5
- {ryry_cli-2.43 → ryry_cli-2.44}/LICENSE +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/README.md +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/__init__.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/main.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/ryry_webapi.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/store.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/task.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/upload.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry/utils.py +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.43 → ryry_cli-2.44}/setup.cfg +0 -0
|
@@ -23,7 +23,7 @@ class TaskThread(Thread):
|
|
|
23
23
|
params = False
|
|
24
24
|
idx = 0
|
|
25
25
|
call_back = None
|
|
26
|
-
def __init__(self, idx, total, func, params, callback):
|
|
26
|
+
def __init__(self, idx, total, func, params, callback, timeout=3600):
|
|
27
27
|
super().__init__()
|
|
28
28
|
self.idx = idx
|
|
29
29
|
self.total = total
|
|
@@ -32,6 +32,7 @@ class TaskThread(Thread):
|
|
|
32
32
|
self.checking = False
|
|
33
33
|
self.checkCount = 0
|
|
34
34
|
self.params = params
|
|
35
|
+
self.timeout = timeout
|
|
35
36
|
self.call_back = callback
|
|
36
37
|
if self.call_back == None:
|
|
37
38
|
raise Exception("need callback function")
|
|
@@ -45,7 +46,7 @@ class TaskThread(Thread):
|
|
|
45
46
|
if cmd:
|
|
46
47
|
self.checkUUID = "local_" + ''.join(str(uuid.uuid4()).split('-'))
|
|
47
48
|
self.params["task_id"] = self.checkUUID
|
|
48
|
-
executeSuccess, result_obj = task.executeLocalPython(self.checkUUID, cmd, self.params)
|
|
49
|
+
executeSuccess, result_obj = task.executeLocalPython(self.checkUUID, cmd, self.params, self.timeout)
|
|
49
50
|
if executeSuccess and result_obj["status"] == 0:
|
|
50
51
|
self.call_back(self.idx, result_obj["result"])
|
|
51
52
|
return
|
|
@@ -79,7 +80,7 @@ class Task:
|
|
|
79
80
|
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
|
80
81
|
thread_data = {}
|
|
81
82
|
|
|
82
|
-
def __init__(self, func: str, multi_params: list[dict], fromUUID=""):
|
|
83
|
+
def __init__(self, func: str, multi_params: list[dict], fromUUID="", timeout=3600):
|
|
83
84
|
self.thread_data = {}
|
|
84
85
|
|
|
85
86
|
realTaskUUID = fromUUID
|
|
@@ -98,7 +99,7 @@ class Task:
|
|
|
98
99
|
param["fromUUID"] = realTaskUUID
|
|
99
100
|
param["domain"] = domain
|
|
100
101
|
self.thread_data[str(idx)] = {
|
|
101
|
-
"thread" : TaskThread(idx, len(multi_params), func, param, _callback),
|
|
102
|
+
"thread" : TaskThread(idx, len(multi_params), func, param, _callback, timeout),
|
|
102
103
|
"result" : None
|
|
103
104
|
}
|
|
104
105
|
idx+=1
|
|
@@ -3,7 +3,7 @@ import os
|
|
|
3
3
|
import subprocess
|
|
4
4
|
import datetime
|
|
5
5
|
|
|
6
|
-
ryry_version = "2.
|
|
6
|
+
ryry_version = "2.44"
|
|
7
7
|
ryry_build_number = int(ryry_version.replace(".",""))
|
|
8
8
|
cur_dir = os.path.dirname(os.path.abspath(__file__))
|
|
9
9
|
constanspy = os.path.join(cur_dir, "ryry", "constant.py")
|
ryry_cli-2.43/ryry/constant.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|