@xuda.io/runtime-bundle 1.0.825 → 1.0.827
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -8437,7 +8437,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8437
8437
|
|
|
8438
8438
|
let last_job_in_queue = 0;
|
|
8439
8439
|
let run_stat;
|
|
8440
|
-
const job_iterator = async function () {
|
|
8440
|
+
const job_iterator = async function (testId) {
|
|
8441
8441
|
let from_job_num_to_run = last_job_in_queue;
|
|
8442
8442
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
8443
8443
|
|
|
@@ -8452,6 +8452,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8452
8452
|
if (val.stat) {
|
|
8453
8453
|
break;
|
|
8454
8454
|
}
|
|
8455
|
+
|
|
8456
|
+
console.log(testId);
|
|
8455
8457
|
// var _session = SESSION_OBJ[val.SESSION_ID];
|
|
8456
8458
|
// if (!UI_WORKER_OBJ.jobs[Number(key)] || val.job_num === 9999999)
|
|
8457
8459
|
// continue;
|
|
@@ -8466,6 +8468,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8466
8468
|
// }
|
|
8467
8469
|
|
|
8468
8470
|
await func.UI.worker.execute(val.SESSION_ID, val);
|
|
8471
|
+
break;
|
|
8469
8472
|
} catch (err) {
|
|
8470
8473
|
console.error(err);
|
|
8471
8474
|
}
|
|
@@ -8483,10 +8486,11 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8483
8486
|
// job_iterator();
|
|
8484
8487
|
this._interval = setInterval(() => {
|
|
8485
8488
|
if (!run_stat) {
|
|
8489
|
+
var testId = crypto.randomUUID();
|
|
8486
8490
|
run_stat = 1;
|
|
8487
|
-
job_iterator();
|
|
8491
|
+
job_iterator(testId);
|
|
8488
8492
|
}
|
|
8489
|
-
},
|
|
8493
|
+
}, 10);
|
|
8490
8494
|
|
|
8491
8495
|
// this._interval = setInterval(job_iterator, 1);
|
|
8492
8496
|
|
|
@@ -8438,7 +8438,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8438
8438
|
|
|
8439
8439
|
let last_job_in_queue = 0;
|
|
8440
8440
|
let run_stat;
|
|
8441
|
-
const job_iterator = async function () {
|
|
8441
|
+
const job_iterator = async function (testId) {
|
|
8442
8442
|
let from_job_num_to_run = last_job_in_queue;
|
|
8443
8443
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
8444
8444
|
|
|
@@ -8453,6 +8453,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8453
8453
|
if (val.stat) {
|
|
8454
8454
|
break;
|
|
8455
8455
|
}
|
|
8456
|
+
|
|
8457
|
+
console.log(testId);
|
|
8456
8458
|
// var _session = SESSION_OBJ[val.SESSION_ID];
|
|
8457
8459
|
// if (!UI_WORKER_OBJ.jobs[Number(key)] || val.job_num === 9999999)
|
|
8458
8460
|
// continue;
|
|
@@ -8467,6 +8469,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8467
8469
|
// }
|
|
8468
8470
|
|
|
8469
8471
|
await func.UI.worker.execute(val.SESSION_ID, val);
|
|
8472
|
+
break;
|
|
8470
8473
|
} catch (err) {
|
|
8471
8474
|
console.error(err);
|
|
8472
8475
|
}
|
|
@@ -8484,10 +8487,11 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8484
8487
|
// job_iterator();
|
|
8485
8488
|
this._interval = setInterval(() => {
|
|
8486
8489
|
if (!run_stat) {
|
|
8490
|
+
var testId = crypto.randomUUID();
|
|
8487
8491
|
run_stat = 1;
|
|
8488
|
-
job_iterator();
|
|
8492
|
+
job_iterator(testId);
|
|
8489
8493
|
}
|
|
8490
|
-
},
|
|
8494
|
+
}, 10);
|
|
8491
8495
|
|
|
8492
8496
|
// this._interval = setInterval(job_iterator, 1);
|
|
8493
8497
|
|