@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.
@@ -4152,12 +4152,18 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
4152
4152
  for (let job_num of jobs) {
4153
4153
  job_promises.push(
4154
4154
  new Promise((resolve, reject) => {
4155
+ let i = 0;
4155
4156
  const interval = setInterval(() => {
4157
+ i++;
4156
4158
  var job_index = func.events.find_job_index(SESSION_ID, job_num);
4157
4159
  if (job_index == null) {
4158
4160
  clearInterval(interval);
4159
4161
  resolve(job_num);
4160
4162
  }
4163
+ if (i > 100) {
4164
+ console.error('deadlock detected');
4165
+ i = 0;
4166
+ }
4161
4167
  }, 100);
4162
4168
  }),
4163
4169
  );
@@ -4153,12 +4153,18 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
4153
4153
  for (let job_num of jobs) {
4154
4154
  job_promises.push(
4155
4155
  new Promise((resolve, reject) => {
4156
+ let i = 0;
4156
4157
  const interval = setInterval(() => {
4158
+ i++;
4157
4159
  var job_index = func.events.find_job_index(SESSION_ID, job_num);
4158
4160
  if (job_index == null) {
4159
4161
  clearInterval(interval);
4160
4162
  resolve(job_num);
4161
4163
  }
4164
+ if (i > 100) {
4165
+ console.error('deadlock detected');
4166
+ i = 0;
4167
+ }
4162
4168
  }, 100);
4163
4169
  }),
4164
4170
  );