@xuda.io/runtime-bundle 1.0.963 → 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
 
@@ -8415,13 +8415,13 @@ func.UI.worker.init = async function (SESSION_ID) {
8415
8415
  if (!running_xu_ui_id) continue;
8416
8416
 
8417
8417
  $.each(running_job_obj.elementP.find('*'), function (key, val) {
8418
- const xu_ui_id = val.elementP.attr('xu-ui-id');
8418
+ const xu_ui_id = $(val).attr('xu-ui-id');
8419
8419
  if (!xu_ui_id) return true;
8420
8420
  running_job_children_elements.push(xu_ui_id);
8421
8421
  });
8422
8422
 
8423
8423
  $.each(val.elementP.find('*'), function (key, val) {
8424
- const xu_ui_id = val.elementP.attr('xu-ui-id');
8424
+ const xu_ui_id = $(val).attr('xu-ui-id');
8425
8425
  if (!xu_ui_id) return true;
8426
8426
  active_job_children_elements.push(xu_ui_id);
8427
8427
  });
@@ -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
 
@@ -8416,13 +8416,13 @@ func.UI.worker.init = async function (SESSION_ID) {
8416
8416
  if (!running_xu_ui_id) continue;
8417
8417
 
8418
8418
  $.each(running_job_obj.elementP.find('*'), function (key, val) {
8419
- const xu_ui_id = val.elementP.attr('xu-ui-id');
8419
+ const xu_ui_id = $(val).attr('xu-ui-id');
8420
8420
  if (!xu_ui_id) return true;
8421
8421
  running_job_children_elements.push(xu_ui_id);
8422
8422
  });
8423
8423
 
8424
8424
  $.each(val.elementP.find('*'), function (key, val) {
8425
- const xu_ui_id = val.elementP.attr('xu-ui-id');
8425
+ const xu_ui_id = $(val).attr('xu-ui-id');
8426
8426
  if (!xu_ui_id) return true;
8427
8427
  active_job_children_elements.push(xu_ui_id);
8428
8428
  });