@xuda.io/runtime-bundle 1.0.826 → 1.0.828
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,8 +8436,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8436
8436
|
};
|
|
8437
8437
|
|
|
8438
8438
|
let last_job_in_queue = 0;
|
|
8439
|
-
let run_stat;
|
|
8440
|
-
const job_iterator = async function (
|
|
8439
|
+
// let run_stat;
|
|
8440
|
+
const job_iterator = async function () {
|
|
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
|
|
|
@@ -8453,7 +8453,6 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8453
8453
|
break;
|
|
8454
8454
|
}
|
|
8455
8455
|
|
|
8456
|
-
console.log(testId);
|
|
8457
8456
|
// var _session = SESSION_OBJ[val.SESSION_ID];
|
|
8458
8457
|
// if (!UI_WORKER_OBJ.jobs[Number(key)] || val.job_num === 9999999)
|
|
8459
8458
|
// continue;
|
|
@@ -8468,6 +8467,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8468
8467
|
// }
|
|
8469
8468
|
|
|
8470
8469
|
await func.UI.worker.execute(val.SESSION_ID, val);
|
|
8470
|
+
break;
|
|
8471
8471
|
} catch (err) {
|
|
8472
8472
|
console.error(err);
|
|
8473
8473
|
}
|
|
@@ -8480,18 +8480,18 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8480
8480
|
this.attempt++;
|
|
8481
8481
|
}
|
|
8482
8482
|
// return job_iterator();
|
|
8483
|
-
run_stat = 0;
|
|
8483
|
+
// run_stat = 0;
|
|
8484
8484
|
};
|
|
8485
8485
|
// job_iterator();
|
|
8486
|
-
this._interval = setInterval(() => {
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
}, 10);
|
|
8486
|
+
// this._interval = setInterval(() => {
|
|
8487
|
+
// if (!run_stat) {
|
|
8488
|
+
// var testId = crypto.randomUUID();
|
|
8489
|
+
// run_stat = 1;
|
|
8490
|
+
// job_iterator(testId);
|
|
8491
|
+
// }
|
|
8492
|
+
// }, 10);
|
|
8493
8493
|
|
|
8494
|
-
|
|
8494
|
+
this._interval = setInterval(job_iterator, 1);
|
|
8495
8495
|
|
|
8496
8496
|
setInterval(async function () {
|
|
8497
8497
|
func.UI.ds_garbage_collector();
|
|
@@ -8437,8 +8437,8 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8437
8437
|
};
|
|
8438
8438
|
|
|
8439
8439
|
let last_job_in_queue = 0;
|
|
8440
|
-
let run_stat;
|
|
8441
|
-
const job_iterator = async function (
|
|
8440
|
+
// let run_stat;
|
|
8441
|
+
const job_iterator = async function () {
|
|
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
|
|
|
@@ -8454,7 +8454,6 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8454
8454
|
break;
|
|
8455
8455
|
}
|
|
8456
8456
|
|
|
8457
|
-
console.log(testId);
|
|
8458
8457
|
// var _session = SESSION_OBJ[val.SESSION_ID];
|
|
8459
8458
|
// if (!UI_WORKER_OBJ.jobs[Number(key)] || val.job_num === 9999999)
|
|
8460
8459
|
// continue;
|
|
@@ -8469,6 +8468,7 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8469
8468
|
// }
|
|
8470
8469
|
|
|
8471
8470
|
await func.UI.worker.execute(val.SESSION_ID, val);
|
|
8471
|
+
break;
|
|
8472
8472
|
} catch (err) {
|
|
8473
8473
|
console.error(err);
|
|
8474
8474
|
}
|
|
@@ -8481,18 +8481,18 @@ func.UI.worker.init = async function (SESSION_ID) {
|
|
|
8481
8481
|
this.attempt++;
|
|
8482
8482
|
}
|
|
8483
8483
|
// return job_iterator();
|
|
8484
|
-
run_stat = 0;
|
|
8484
|
+
// run_stat = 0;
|
|
8485
8485
|
};
|
|
8486
8486
|
// job_iterator();
|
|
8487
|
-
this._interval = setInterval(() => {
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
}, 10);
|
|
8487
|
+
// this._interval = setInterval(() => {
|
|
8488
|
+
// if (!run_stat) {
|
|
8489
|
+
// var testId = crypto.randomUUID();
|
|
8490
|
+
// run_stat = 1;
|
|
8491
|
+
// job_iterator(testId);
|
|
8492
|
+
// }
|
|
8493
|
+
// }, 10);
|
|
8494
8494
|
|
|
8495
|
-
|
|
8495
|
+
this._interval = setInterval(job_iterator, 1);
|
|
8496
8496
|
|
|
8497
8497
|
setInterval(async function () {
|
|
8498
8498
|
func.UI.ds_garbage_collector();
|