@pgflow/edge-worker 0.1.13 → 0.1.14

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/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @pgflow/edge-worker
2
2
 
3
+ ## 0.1.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 956224b: Add debug statements in EdgeWorker
8
+ - @pgflow/core@0.1.14
9
+ - @pgflow/dsl@0.1.14
10
+
3
11
  ## 0.1.13
4
12
 
5
13
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"EdgeWorker.d.ts","sourceRoot":"","sources":["../src/EdgeWorker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAEL,KAAK,iBAAiB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,GAC9B,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,UAAU;IACrB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAgC;IACvD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAS;IAEjC;;;;;OAKG;WACU,KAAK,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC7C,OAAO,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EACnC,MAAM,CAAC,EAAE,IAAI,CAAC,iBAAiB,EA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,CAAC,QAAQ,CAAgC;IACvD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAS;IAEjC;;;;;OAKG;WACU,KAAK,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAC7C,OAAO,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EACnC,MAAM,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,GACtC,OAAO,CAAC,eAAe,CAAC;IAE3B;;;;;OAKG;WACU,KAAK,CAAC,KAAK,SAAS,OAAO,EACtC,IAAI,EAAE,KAAK,EACX,MAAM,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,GACrC,OAAO,CAAC,eAAe,CAAC;IAgC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;WACU,gBAAgB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EACxD,OAAO,EAAE,gBAAgB,CAAC,QAAQ,CAAC,EACnC,MAAM,GAAE,iBAAsB;IA8BhC;;;;;;;;;;;;;;;;;;;OAmBG;WACU,eAAe,CAAC,KAAK,SAAS,OAAO,EAChD,IAAI,EAAE,KAAK,EACX,MAAM,GAAE,gBAAqB;IAyB/B;;OAEG;WACU,IAAI;IAQjB,OAAO,CAAC,MAAM,CAAC,eAAe;CAM/B"}
@@ -43,9 +43,11 @@ export class EdgeWorker {
43
43
  */
44
44
  static async start(handlerOrFlow, config = {}) {
45
45
  if (typeof handlerOrFlow === 'function') {
46
+ console.log('start() if typeof handlerOrFlow is function');
46
47
  return this.startQueueWorker(handlerOrFlow, config);
47
48
  }
48
49
  else {
50
+ console.log('start() if typeof handlerOrFlow is FLOW');
49
51
  return this.startFlowWorker(handlerOrFlow, config);
50
52
  }
51
53
  }
@@ -102,7 +104,10 @@ export class EdgeWorker {
102
104
  visibilityTimeout: config.visibilityTimeout ?? 3,
103
105
  connectionString: config.connectionString || this.platform.getConnectionString(),
104
106
  };
105
- await this.platform.startWorker((createLoggerFn) => createQueueWorker(handler, workerConfig, createLoggerFn));
107
+ await this.platform.startWorker((createLoggerFn) => {
108
+ console.log('QUEUE: platform.startWorker callback');
109
+ return createQueueWorker(handler, workerConfig, createLoggerFn);
110
+ });
106
111
  return this.platform;
107
112
  }
108
113
  /**
@@ -137,7 +142,10 @@ export class EdgeWorker {
137
142
  batchSize: config.batchSize ?? 10,
138
143
  connectionString: config.connectionString || this.platform.getConnectionString(),
139
144
  };
140
- await this.platform.startWorker((createLoggerFn) => createFlowWorker(flow, workerConfig, createLoggerFn));
145
+ await this.platform.startWorker((createLoggerFn) => {
146
+ console.log('FLOW: platform.startWorker callback');
147
+ return createFlowWorker(flow, workerConfig, createLoggerFn);
148
+ });
141
149
  return this.platform;
142
150
  }
143
151
  /**
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/edge-worker",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/edge-worker",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,8 +19,8 @@
19
19
  "dependencies": {
20
20
  "@henrygd/queue": "^1.0.7",
21
21
  "postgres": "3.4.5",
22
- "@pgflow/core": "0.1.13",
23
- "@pgflow/dsl": "0.1.13"
22
+ "@pgflow/core": "0.1.14",
23
+ "@pgflow/dsl": "0.1.14"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/deno": "npm:@teidesu/deno-types@1.45.2",