@xuda.io/runtime-bundle 1.0.655 → 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
  );
@@ -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
  );