@xuda.io/xuda-worker-bundle-min 1.3.1166 → 1.3.1168
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/index.js +26 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2198,7 +2198,20 @@ func.datasource.execute = async function (
|
|
|
2198
2198
|
let prog_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, _ds.prog_id);
|
|
2199
2199
|
|
|
2200
2200
|
const callback_datasource = async function () {
|
|
2201
|
-
|
|
2201
|
+
if (typeof IS_WORKER === "undefined" && _ds.viewSourceProp === "globals") {
|
|
2202
|
+
|
|
2203
|
+
if (!["main"].includes(_session.opt.app_computing_mode)) {
|
|
2204
|
+
|
|
2205
|
+
await func.index.call_worker(SESSION_ID, {
|
|
2206
|
+
service: "create_webworker_globals",
|
|
2207
|
+
data: { ds_data: _ds, session_id: SESSION_ID },
|
|
2208
|
+
});
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
|
|
2202
2215
|
if (
|
|
2203
2216
|
await func.datasource.get_view_events_count(
|
|
2204
2217
|
SESSION_ID,
|
|
@@ -3243,10 +3256,20 @@ func.datasource.run_events_functions = async function (
|
|
|
3243
3256
|
|
|
3244
3257
|
|
|
3245
3258
|
}
|
|
3259
|
+
if (job_promises.length) {
|
|
3260
|
+
await Promise.all(job_promises)
|
|
3261
|
+
}
|
|
3262
|
+
resolve()
|
|
3263
|
+
|
|
3246
3264
|
// if (job_promises.length) {
|
|
3247
|
-
//
|
|
3265
|
+
// Promise.all(job_promises)
|
|
3266
|
+
// .then((e) => {
|
|
3267
|
+
// resolve()
|
|
3268
|
+
// });
|
|
3269
|
+
|
|
3270
|
+
// } else {
|
|
3271
|
+
// resolve()
|
|
3248
3272
|
// }
|
|
3249
|
-
resolve()
|
|
3250
3273
|
|
|
3251
3274
|
})
|
|
3252
3275
|
|