@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.
- package/js/xuda-runtime-bundle.js +6 -0
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +6 -0
- package/js/xuda-runtime-slim.min.es.js +6 -0
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +6 -0
- package/js/xuda-worker-bundle.js +6 -0
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
);
|
package/js/xuda-worker-bundle.js
CHANGED
|
@@ -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
|
);
|