@xuda.io/runtime-bundle 1.0.965 → 1.0.967
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.
|
@@ -27492,7 +27492,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27492
27492
|
|
|
27493
27493
|
let last_job_in_queue = 0;
|
|
27494
27494
|
// let run_stat;
|
|
27495
|
-
const
|
|
27495
|
+
const job_iterator_old = async function () {
|
|
27496
27496
|
let from_job_num_to_run = last_job_in_queue;
|
|
27497
27497
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
27498
27498
|
|
|
@@ -27522,7 +27522,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27522
27522
|
}
|
|
27523
27523
|
};
|
|
27524
27524
|
|
|
27525
|
-
const
|
|
27525
|
+
const job_iterator = async function () {
|
|
27526
27526
|
let from_job_num_to_run = last_job_in_queue;
|
|
27527
27527
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
27528
27528
|
|
|
@@ -27532,12 +27532,12 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27532
27532
|
if (UI_WORKER_OBJ.jobs.length) {
|
|
27533
27533
|
let running_job_children_elements = [];
|
|
27534
27534
|
let active_job_children_elements = [];
|
|
27535
|
-
for (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
|
|
27535
|
+
for await (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
|
|
27536
27536
|
try {
|
|
27537
27537
|
if (val.stat === 'busy') continue;
|
|
27538
27538
|
|
|
27539
27539
|
if (!val.elementP) {
|
|
27540
|
-
func.UI.worker.execute(val.SESSION_ID, val);
|
|
27540
|
+
await func.UI.worker.execute(val.SESSION_ID, val);
|
|
27541
27541
|
continue;
|
|
27542
27542
|
}
|
|
27543
27543
|
|
|
@@ -27575,12 +27575,12 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27575
27575
|
$elm.data().xuData.pending_to_delete = true;
|
|
27576
27576
|
});
|
|
27577
27577
|
|
|
27578
|
-
func.UI.worker.delete_job(SESSION_ID, running_job_obj.job_num);
|
|
27578
|
+
await func.UI.worker.delete_job(SESSION_ID, running_job_obj.job_num);
|
|
27579
27579
|
break;
|
|
27580
27580
|
}
|
|
27581
27581
|
|
|
27582
27582
|
// execute - if active job element not exist the current job ui and not detected as parent element
|
|
27583
|
-
func.UI.worker.execute(val.SESSION_ID, val);
|
|
27583
|
+
await func.UI.worker.execute(val.SESSION_ID, val);
|
|
27584
27584
|
continue;
|
|
27585
27585
|
|
|
27586
27586
|
// active_job_children_elements = [];
|