@xuda.io/xuda-worker-bundle-min 1.3.1179 → 1.3.1181

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.
Files changed (2) hide show
  1. package/index.js +5 -8
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3215,7 +3215,7 @@ func.datasource.run_events_functions = async function (
3215
3215
  dataSourceSession,
3216
3216
  event_id,
3217
3217
  calling_job,
3218
- NA_calling_job_ds
3218
+ async_event
3219
3219
  ) {
3220
3220
  // return new Promise(async (resolve, reject) => {
3221
3221
  var _ds = SESSION_OBJ[SESSION_ID].DS_GLB[dataSourceSession];
@@ -3239,14 +3239,11 @@ func.datasource.run_events_functions = async function (
3239
3239
  val.data.parameters
3240
3240
  );
3241
3241
 
3242
- if (calling_job) continue
3242
+ if (calling_job || async_event) continue
3243
3243
 
3244
3244
  for (let job_num of jobs) {
3245
3245
  job_promises.push(new Promise((resolve, reject) => {
3246
- setTimeout(() => {
3247
- resolve(job_num);
3248
- }, 2000);
3249
- return
3246
+
3250
3247
  const interval = setInterval(() => {
3251
3248
  var job_index = func.events.find_job_index(SESSION_ID, job_num);
3252
3249
  if (job_index == null) {
@@ -3265,7 +3262,7 @@ func.datasource.run_events_functions = async function (
3265
3262
  if (job_promises.length) {
3266
3263
  await Promise.all(job_promises)
3267
3264
  }
3268
- console.log(job_promises)
3265
+ // console.log(job_promises)
3269
3266
  // resolve()
3270
3267
 
3271
3268
  // if (job_promises.length) {
@@ -8796,7 +8793,7 @@ func.events.execute = async function (
8796
8793
  dsP,
8797
8794
  event_name,
8798
8795
  jobNoP,
8799
- null
8796
+ calling_trigger_prop?.props?.async
8800
8797
  );
8801
8798
  // done_execution(event_name);
8802
8799
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1179",
3
+ "version": "1.3.1181",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {