ryry-cli 2.80__tar.gz → 2.81__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.80 → ryry_cli-2.81}/PKG-INFO +1 -1
- ryry_cli-2.81/ryry/constant.py +4 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/ryry_webapi.py +19 -1
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/server_func.py +13 -1
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry_cli.egg-info/PKG-INFO +1 -1
- {ryry_cli-2.80 → ryry_cli-2.81}/setup.py +1 -1
- ryry_cli-2.80/ryry/constant.py +0 -4
- {ryry_cli-2.80 → ryry_cli-2.81}/LICENSE +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/README.md +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/__init__.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/main.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/ryry_server_socket.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/ryry_service.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/ryry_widget.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/script_template/__init__.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/script_template/main.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/script_template/run.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/store.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/task.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/taskUtils.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/upload.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry/utils.py +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry_cli.egg-info/SOURCES.txt +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry_cli.egg-info/dependency_links.txt +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry_cli.egg-info/entry_points.txt +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry_cli.egg-info/requires.txt +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/ryry_cli.egg-info/top_level.txt +0 -0
- {ryry_cli-2.80 → ryry_cli-2.81}/setup.cfg +0 -0
|
@@ -335,4 +335,22 @@ def checkTask(checkUUID):
|
|
|
335
335
|
elif r3["status"] == 2:
|
|
336
336
|
return True, True, json.loads(r3["task_result"]), r3["progress"]
|
|
337
337
|
elif r3["status"] == 3:
|
|
338
|
-
return True, False, r3["fail_reason"], r3["progress"]
|
|
338
|
+
return True, False, r3["fail_reason"], r3["progress"]
|
|
339
|
+
|
|
340
|
+
def multiCheckTask(checkUUIDs):
|
|
341
|
+
req = {
|
|
342
|
+
"task_uuids": checkUUIDs
|
|
343
|
+
}
|
|
344
|
+
r1, r2, r3 = _aigc_post("aigc/task/checkTasks", req)
|
|
345
|
+
result = []
|
|
346
|
+
if r1 != 0:
|
|
347
|
+
for checkUUID in checkUUIDs:
|
|
348
|
+
result.append([checkUUID, False, False, "server fail", 0])
|
|
349
|
+
for r3_item in r3:
|
|
350
|
+
if r3_item["status"] < 2:
|
|
351
|
+
result.append([r3_item["uuid"], False, False, "", r3_item["progress"]])
|
|
352
|
+
elif r3_item["status"] == 2:
|
|
353
|
+
result.append([r3_item["uuid"], True, True, json.loads(r3_item["task_result"]), r3_item["progress"]])
|
|
354
|
+
elif r3_item["status"] == 3:
|
|
355
|
+
result.append([r3_item["uuid"], True, False, r3_item["fail_reason"], r3_item["progress"]])
|
|
356
|
+
return result
|
|
@@ -153,4 +153,16 @@ class AsyncTask:
|
|
|
153
153
|
"success": success,
|
|
154
154
|
"data": data,
|
|
155
155
|
"progress": progress
|
|
156
|
-
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
def multiCheck(self, taskUUIDs):
|
|
159
|
+
results = ryry_webapi.multiCheckTask(taskUUIDs)
|
|
160
|
+
json_results = {}
|
|
161
|
+
for [taskUUID, finish, success, data, progress] in results:
|
|
162
|
+
json_results[taskUUID] = {
|
|
163
|
+
"finish": finish,
|
|
164
|
+
"success": success,
|
|
165
|
+
"data": data,
|
|
166
|
+
"progress": progress
|
|
167
|
+
}
|
|
168
|
+
return json_results
|
ryry_cli-2.80/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
|