@xuda.io/runtime-bundle 1.0.654 → 1.0.656

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.
@@ -2528,12 +2528,18 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
2528
2528
  for (let job_num of jobs) {
2529
2529
  job_promises.push(
2530
2530
  new Promise((resolve, reject) => {
2531
+ let i = 0;
2531
2532
  const interval = setInterval(() => {
2533
+ i++;
2532
2534
  var job_index = func.events.find_job_index(SESSION_ID, job_num);
2533
2535
  if (job_index == null) {
2534
2536
  clearInterval(interval);
2535
2537
  resolve(job_num);
2536
2538
  }
2539
+ if (i > 100) {
2540
+ console.error('deadlock detected');
2541
+ i = 0;
2542
+ }
2537
2543
  }, 100);
2538
2544
  }),
2539
2545
  );
@@ -3500,7 +3506,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3500
3506
  if (!avoid_refresh && fields_changed.length) {
3501
3507
  await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
3502
3508
  // await removed from the below function cause to dead lock Mar 3 25
3503
- func.UI.screen.refresh_screen(
3509
+ await func.UI.screen.refresh_screen(
3504
3510
  SESSION_ID,
3505
3511
  fields_changed,
3506
3512
  null,
@@ -2528,12 +2528,18 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
2528
2528
  for (let job_num of jobs) {
2529
2529
  job_promises.push(
2530
2530
  new Promise((resolve, reject) => {
2531
+ let i = 0;
2531
2532
  const interval = setInterval(() => {
2533
+ i++;
2532
2534
  var job_index = func.events.find_job_index(SESSION_ID, job_num);
2533
2535
  if (job_index == null) {
2534
2536
  clearInterval(interval);
2535
2537
  resolve(job_num);
2536
2538
  }
2539
+ if (i > 100) {
2540
+ console.error('deadlock detected');
2541
+ i = 0;
2542
+ }
2537
2543
  }, 100);
2538
2544
  }),
2539
2545
  );
@@ -3500,7 +3506,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
3500
3506
  if (!avoid_refresh && fields_changed.length) {
3501
3507
  await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
3502
3508
  // await removed from the below function cause to dead lock Mar 3 25
3503
- func.UI.screen.refresh_screen(
3509
+ await func.UI.screen.refresh_screen(
3504
3510
  SESSION_ID,
3505
3511
  fields_changed,
3506
3512
  null,