@xuda.io/runtime-bundle 1.0.965 → 1.0.967

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,7 +8357,7 @@ 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 () {
8360
+ const job_iterator_old = async function () {
8361
8361
  let from_job_num_to_run = last_job_in_queue;
8362
8362
  last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8363
8363
 
@@ -8387,7 +8387,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8387
8387
  }
8388
8388
  };
8389
8389
 
8390
- const job_iterator2 = async function () {
8390
+ const job_iterator = 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
 
@@ -8397,12 +8397,12 @@ func.UI.worker.init = async function (SESSION_ID) {
8397
8397
  if (UI_WORKER_OBJ.jobs.length) {
8398
8398
  let running_job_children_elements = [];
8399
8399
  let active_job_children_elements = [];
8400
- for (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8400
+ for await (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8401
8401
  try {
8402
8402
  if (val.stat === 'busy') continue;
8403
8403
 
8404
8404
  if (!val.elementP) {
8405
- func.UI.worker.execute(val.SESSION_ID, val);
8405
+ await func.UI.worker.execute(val.SESSION_ID, val);
8406
8406
  continue;
8407
8407
  }
8408
8408
 
@@ -8440,12 +8440,12 @@ func.UI.worker.init = async function (SESSION_ID) {
8440
8440
  $elm.data().xuData.pending_to_delete = true;
8441
8441
  });
8442
8442
 
8443
- func.UI.worker.delete_job(SESSION_ID, running_job_obj.job_num);
8443
+ await func.UI.worker.delete_job(SESSION_ID, running_job_obj.job_num);
8444
8444
  break;
8445
8445
  }
8446
8446
 
8447
8447
  // execute - if active job element not exist the current job ui and not detected as parent element
8448
- func.UI.worker.execute(val.SESSION_ID, val);
8448
+ await func.UI.worker.execute(val.SESSION_ID, val);
8449
8449
  continue;
8450
8450
 
8451
8451
  // active_job_children_elements = [];
@@ -8358,7 +8358,7 @@ 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 () {
8361
+ const job_iterator_old = async function () {
8362
8362
  let from_job_num_to_run = last_job_in_queue;
8363
8363
  last_job_in_queue = UI_WORKER_OBJ.num - from_job_num_to_run;
8364
8364
 
@@ -8388,7 +8388,7 @@ func.UI.worker.init = async function (SESSION_ID) {
8388
8388
  }
8389
8389
  };
8390
8390
 
8391
- const job_iterator2 = async function () {
8391
+ const job_iterator = 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
 
@@ -8398,12 +8398,12 @@ func.UI.worker.init = async function (SESSION_ID) {
8398
8398
  if (UI_WORKER_OBJ.jobs.length) {
8399
8399
  let running_job_children_elements = [];
8400
8400
  let active_job_children_elements = [];
8401
- for (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8401
+ for await (const [key, val] of Object.entries(UI_WORKER_OBJ.jobs)) {
8402
8402
  try {
8403
8403
  if (val.stat === 'busy') continue;
8404
8404
 
8405
8405
  if (!val.elementP) {
8406
- func.UI.worker.execute(val.SESSION_ID, val);
8406
+ await func.UI.worker.execute(val.SESSION_ID, val);
8407
8407
  continue;
8408
8408
  }
8409
8409
 
@@ -8441,12 +8441,12 @@ func.UI.worker.init = async function (SESSION_ID) {
8441
8441
  $elm.data().xuData.pending_to_delete = true;
8442
8442
  });
8443
8443
 
8444
- func.UI.worker.delete_job(SESSION_ID, running_job_obj.job_num);
8444
+ await func.UI.worker.delete_job(SESSION_ID, running_job_obj.job_num);
8445
8445
  break;
8446
8446
  }
8447
8447
 
8448
8448
  // execute - if active job element not exist the current job ui and not detected as parent element
8449
- func.UI.worker.execute(val.SESSION_ID, val);
8449
+ await func.UI.worker.execute(val.SESSION_ID, val);
8450
8450
  continue;
8451
8451
 
8452
8452
  // active_job_children_elements = [];