@xuda.io/xuda-worker-bundle-min 1.3.1175 → 1.3.1177

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 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -3222,7 +3222,7 @@ func.datasource.run_events_functions = async function (
3222
3222
  var args = _ds.args;
3223
3223
  // var v = _ds.v;
3224
3224
  const _view_obj = await func.utils.VIEWS_OBJ.get(SESSION_ID, _ds.prog_id);
3225
- // let job_promises = []
3225
+ let job_promises = []
3226
3226
  if (_view_obj.progEvents) {
3227
3227
  for await (const [key, val] of Object.entries(_view_obj.progEvents)) {
3228
3228
  if (
@@ -3243,6 +3243,10 @@ func.datasource.run_events_functions = async function (
3243
3243
 
3244
3244
  for (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
  const interval = setInterval(() => {
3247
3251
  var job_index = func.events.find_job_index(SESSION_ID, job_num);
3248
3252
  if (job_index == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-worker-bundle-min",
3
- "version": "1.3.1175",
3
+ "version": "1.3.1177",
4
4
  "description": "xuda framework min",
5
5
  "main": "index.js",
6
6
  "scripts": {