@xuda.io/runtime-bundle 1.0.824 → 1.0.826
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
|
@@ -8436,7 +8436,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8436
8436
|
};
|
|
8437
8437
|
|
|
8438
8438
|
let last_job_in_queue = 0;
|
|
8439
|
-
|
|
8439
|
+
let run_stat;
|
|
8440
|
+
const job_iterator = async function (testId) {
|
|
8440
8441
|
let from_job_num_to_run = last_job_in_queue;
|
|
8441
8442
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
8442
8443
|
|
|
@@ -8451,6 +8452,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8451
8452
|
if (val.stat) {
|
|
8452
8453
|
break;
|
|
8453
8454
|
}
|
|
8455
|
+
|
|
8456
|
+
console.log(testId);
|
|
8454
8457
|
// var _session = SESSION_OBJ[val.SESSION_ID];
|
|
8455
8458
|
// if (!UI_WORKER_OBJ.jobs[Number(key)] || val.job_num === 9999999)
|
|
8456
8459
|
// continue;
|
|
@@ -8477,15 +8480,18 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8477
8480
|
this.attempt++;
|
|
8478
8481
|
}
|
|
8479
8482
|
// return job_iterator();
|
|
8483
|
+
run_stat = 0;
|
|
8480
8484
|
};
|
|
8481
8485
|
// job_iterator();
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8486
|
+
this._interval = setInterval(() => {
|
|
8487
|
+
if (!run_stat) {
|
|
8488
|
+
var testId = crypto.randomUUID();
|
|
8489
|
+
run_stat = 1;
|
|
8490
|
+
job_iterator(testId);
|
|
8491
|
+
}
|
|
8492
|
+
}, 10);
|
|
8487
8493
|
|
|
8488
|
-
this._interval = setInterval(job_iterator, 1);
|
|
8494
|
+
// this._interval = setInterval(job_iterator, 1);
|
|
8489
8495
|
|
|
8490
8496
|
setInterval(async function () {
|
|
8491
8497
|
func.UI.ds_garbage_collector();
|
|
@@ -8437,7 +8437,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8437
8437
|
};
|
|
8438
8438
|
|
|
8439
8439
|
let last_job_in_queue = 0;
|
|
8440
|
-
|
|
8440
|
+
let run_stat;
|
|
8441
|
+
const job_iterator = async function (testId) {
|
|
8441
8442
|
let from_job_num_to_run = last_job_in_queue;
|
|
8442
8443
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
8443
8444
|
|
|
@@ -8452,6 +8453,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8452
8453
|
if (val.stat) {
|
|
8453
8454
|
break;
|
|
8454
8455
|
}
|
|
8456
|
+
|
|
8457
|
+
console.log(testId);
|
|
8455
8458
|
// var _session = SESSION_OBJ[val.SESSION_ID];
|
|
8456
8459
|
// if (!UI_WORKER_OBJ.jobs[Number(key)] || val.job_num === 9999999)
|
|
8457
8460
|
// continue;
|
|
@@ -8478,15 +8481,18 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8478
8481
|
this.attempt++;
|
|
8479
8482
|
}
|
|
8480
8483
|
// return job_iterator();
|
|
8484
|
+
run_stat = 0;
|
|
8481
8485
|
};
|
|
8482
8486
|
// job_iterator();
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8487
|
+
this._interval = setInterval(() => {
|
|
8488
|
+
if (!run_stat) {
|
|
8489
|
+
var testId = crypto.randomUUID();
|
|
8490
|
+
run_stat = 1;
|
|
8491
|
+
job_iterator(testId);
|
|
8492
|
+
}
|
|
8493
|
+
}, 10);
|
|
8488
8494
|
|
|
8489
|
-
this._interval = setInterval(job_iterator, 1);
|
|
8495
|
+
// this._interval = setInterval(job_iterator, 1);
|
|
8490
8496
|
|
|
8491
8497
|
setInterval(async function () {
|
|
8492
8498
|
func.UI.ds_garbage_collector();
|