@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
|
@@ -29278,12 +29278,18 @@ func.datasource.run_events_functions = async function (SESSION_ID, dataSourceSes
|
|
|
29278
29278
|
for (let job_num of jobs) {
|
|
29279
29279
|
job_promises.push(
|
|
29280
29280
|
new Promise((resolve, reject) => {
|
|
29281
|
+
let i = 0;
|
|
29281
29282
|
const interval = setInterval(() => {
|
|
29283
|
+
i++;
|
|
29282
29284
|
var job_index = func.events.find_job_index(SESSION_ID, job_num);
|
|
29283
29285
|
if (job_index == null) {
|
|
29284
29286
|
clearInterval(interval);
|
|
29285
29287
|
resolve(job_num);
|
|
29286
29288
|
}
|
|
29289
|
+
if (i > 100) {
|
|
29290
|
+
console.error('deadlock detected');
|
|
29291
|
+
i = 0;
|
|
29292
|
+
}
|
|
29287
29293
|
}, 100);
|
|
29288
29294
|
}),
|
|
29289
29295
|
);
|