@xuda.io/runtime-bundle 1.0.964 → 1.0.965

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.
@@ -8357,37 +8357,37 @@ func.UI.worker.init = async function (SESSION_ID) {
8357
8357
 
8358
8358
  let last_job_in_queue = 0;
8359
8359
  // let run_stat;
8360
- // const job_iterator = async function () {
8361
- // let from_job_num_to_run = last_job_in_queue;
8362
- // last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8363
-
8364
- // if (typeof UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === null) {
8365
- // // idle
8366
- // this.attempt = 0;
8367
- // if (UI_WORKER_OBJ.jobs.length) {
8368
- // // clearInterval(this._interval);
8369
- // for await (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8370
- // // if (val.job_num < from_job_num_to_run) continue;
8371
- // try {
8372
- // if (val.stat) {
8373
- // break;
8374
- // }
8375
-
8376
- // await func.UI.worker.execute(val.SESSION_ID, val);
8377
- // // break;
8378
- // } catch (err) {
8379
- // console.error(err);
8380
- // }
8381
- // }
8382
- // }
8383
- // } else {
8384
- // //busy
8360
+ const job_iterator = async function () {
8361
+ let from_job_num_to_run = last_job_in_queue;
8362
+ last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8385
8363
 
8386
- // this.attempt++;
8387
- // }
8388
- // };
8364
+ if (typeof UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === null) {
8365
+ // idle
8366
+ this.attempt = 0;
8367
+ if (UI_WORKER_OBJ.jobs.length) {
8368
+ // clearInterval(this._interval);
8369
+ for await (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8370
+ // if (val.job_num < from_job_num_to_run) continue;
8371
+ try {
8372
+ if (val.stat) {
8373
+ break;
8374
+ }
8389
8375
 
8390
- const job_iterator = async function () {
8376
+ await func.UI.worker.execute(val.SESSION_ID, val);
8377
+ // break;
8378
+ } catch (err) {
8379
+ console.error(err);
8380
+ }
8381
+ }
8382
+ }
8383
+ } else {
8384
+ //busy
8385
+
8386
+ this.attempt++;
8387
+ }
8388
+ };
8389
+
8390
+ const job_iterator2 = async function () {
8391
8391
  let from_job_num_to_run = last_job_in_queue;
8392
8392
  last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8393
8393
 
@@ -8358,37 +8358,37 @@ func.UI.worker.init = async function (SESSION_ID) {
8358
8358
 
8359
8359
  let last_job_in_queue = 0;
8360
8360
  // let run_stat;
8361
- // const job_iterator = async function () {
8362
- // let from_job_num_to_run = last_job_in_queue;
8363
- // last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8364
-
8365
- // if (typeof UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === null) {
8366
- // // idle
8367
- // this.attempt = 0;
8368
- // if (UI_WORKER_OBJ.jobs.length) {
8369
- // // clearInterval(this._interval);
8370
- // for await (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8371
- // // if (val.job_num < from_job_num_to_run) continue;
8372
- // try {
8373
- // if (val.stat) {
8374
- // break;
8375
- // }
8376
-
8377
- // await func.UI.worker.execute(val.SESSION_ID, val);
8378
- // // break;
8379
- // } catch (err) {
8380
- // console.error(err);
8381
- // }
8382
- // }
8383
- // }
8384
- // } else {
8385
- // //busy
8361
+ const job_iterator = async function () {
8362
+ let from_job_num_to_run = last_job_in_queue;
8363
+ last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8386
8364
 
8387
- // this.attempt++;
8388
- // }
8389
- // };
8365
+ if (typeof UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === 'undefined' || UI_WORKER_OBJ.stat === null) {
8366
+ // idle
8367
+ this.attempt = 0;
8368
+ if (UI_WORKER_OBJ.jobs.length) {
8369
+ // clearInterval(this._interval);
8370
+ for await (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8371
+ // if (val.job_num < from_job_num_to_run) continue;
8372
+ try {
8373
+ if (val.stat) {
8374
+ break;
8375
+ }
8390
8376
 
8391
- const job_iterator = async function () {
8377
+ await func.UI.worker.execute(val.SESSION_ID, val);
8378
+ // break;
8379
+ } catch (err) {
8380
+ console.error(err);
8381
+ }
8382
+ }
8383
+ }
8384
+ } else {
8385
+ //busy
8386
+
8387
+ this.attempt++;
8388
+ }
8389
+ };
8390
+
8391
+ const job_iterator2 = async function () {
8392
8392
  let from_job_num_to_run = last_job_in_queue;
8393
8393
  last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8394
8394