@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.
- package/js/xuda-runtime-bundle.js +7 -1
- package/js/xuda-runtime-bundle.min.js +1 -1
- package/js/xuda-runtime-slim.js +7 -1
- package/js/xuda-runtime-slim.min.es.js +7 -1
- package/js/xuda-runtime-slim.min.js +1 -1
- package/js/xuda-server-bundle.min.mjs +1 -1
- package/js/xuda-server-bundle.mjs +7 -1
- package/js/xuda-worker-bundle.js +7 -1
- package/js/xuda-worker-bundle.min.js +1 -1
- package/package.json +1 -1
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -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
|
);
|
|
@@ -5124,7 +5130,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5124
5130
|
if (!avoid_refresh && fields_changed.length) {
|
|
5125
5131
|
await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
|
|
5126
5132
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
5127
|
-
func.UI.screen.refresh_screen(
|
|
5133
|
+
await func.UI.screen.refresh_screen(
|
|
5128
5134
|
SESSION_ID,
|
|
5129
5135
|
fields_changed,
|
|
5130
5136
|
null,
|
|
@@ -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
|
);
|
|
@@ -5125,7 +5131,7 @@ func.datasource.update = async function (SESSION_ID, datasource_changes, update_
|
|
|
5125
5131
|
if (!avoid_refresh && fields_changed.length) {
|
|
5126
5132
|
await func.UI.screen.refresh_xu_attributes(SESSION_ID, fields_changed);
|
|
5127
5133
|
// await removed from the below function cause to dead lock Mar 3 25
|
|
5128
|
-
func.UI.screen.refresh_screen(
|
|
5134
|
+
await func.UI.screen.refresh_screen(
|
|
5129
5135
|
SESSION_ID,
|
|
5130
5136
|
fields_changed,
|
|
5131
5137
|
null,
|