@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.
|
@@ -27526,7 +27526,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27526
27526
|
};
|
|
27527
27527
|
|
|
27528
27528
|
let last_job_in_queue = 0;
|
|
27529
|
-
|
|
27529
|
+
let run_stat;
|
|
27530
|
+
const job_iterator = async function (testId) {
|
|
27530
27531
|
let from_job_num_to_run = last_job_in_queue;
|
|
27531
27532
|
last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
|
|
27532
27533
|
|
|
@@ -27541,6 +27542,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27541
27542
|
if (val.stat) {
|
|
27542
27543
|
break;
|
|
27543
27544
|
}
|
|
27545
|
+
|
|
27546
|
+
console.log(testId);
|
|
27544
27547
|
// var _session = SESSION_OBJ[val.SESSION_ID];
|
|
27545
27548
|
// if (!UI_WORKER_OBJ.jobs[Number(key)] || val.job_num === 9999999)
|
|
27546
27549
|
// continue;
|
|
@@ -27567,15 +27570,18 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
27567
27570
|
this.attempt++;
|
|
27568
27571
|
}
|
|
27569
27572
|
// return job_iterator();
|
|
27573
|
+
run_stat = 0;
|
|
27570
27574
|
};
|
|
27571
27575
|
// job_iterator();
|
|
27572
|
-
|
|
27573
|
-
|
|
27574
|
-
|
|
27575
|
-
|
|
27576
|
-
|
|
27576
|
+
this._interval = setInterval(() => {
|
|
27577
|
+
if (!run_stat) {
|
|
27578
|
+
var testId = crypto.randomUUID();
|
|
27579
|
+
run_stat = 1;
|
|
27580
|
+
job_iterator(testId);
|
|
27581
|
+
}
|
|
27582
|
+
}, 10);
|
|
27577
27583
|
|
|
27578
|
-
this._interval = setInterval(job_iterator, 1);
|
|
27584
|
+
// this._interval = setInterval(job_iterator, 1);
|
|
27579
27585
|
|
|
27580
27586
|
setInterval(async function () {
|
|
27581
27587
|
func.UI.ds_garbage_collector();
|