@vendure/job-queue-plugin 2.1.0-next.4 → 2.1.0-next.5
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.
|
@@ -35,6 +35,7 @@ import { BullMQPluginOptions } from './types';
|
|
|
35
35
|
* const config: VendureConfig = {
|
|
36
36
|
* // Add an instance of the plugin to the plugins array
|
|
37
37
|
* plugins: [
|
|
38
|
+
* // DefaultJobQueuePlugin should be removed from the plugins array
|
|
38
39
|
* BullMQJobQueuePlugin.init({
|
|
39
40
|
* connection: {
|
|
40
41
|
* port: 6379
|
|
@@ -77,7 +78,7 @@ import { BullMQPluginOptions } from './types';
|
|
|
77
78
|
* You can change the concurrency in the `workerOptions` passed to the `init()` method:
|
|
78
79
|
*
|
|
79
80
|
* @example
|
|
80
|
-
* ```
|
|
81
|
+
* ```ts
|
|
81
82
|
* const config: VendureConfig = {
|
|
82
83
|
* plugins: [
|
|
83
84
|
* BullMQJobQueuePlugin.init({
|
package/package/bullmq/plugin.js
CHANGED
|
@@ -50,6 +50,7 @@ const redis_job_buffer_storage_strategy_1 = require("./redis-job-buffer-storage-
|
|
|
50
50
|
* const config: VendureConfig = {
|
|
51
51
|
* // Add an instance of the plugin to the plugins array
|
|
52
52
|
* plugins: [
|
|
53
|
+
* // DefaultJobQueuePlugin should be removed from the plugins array
|
|
53
54
|
* BullMQJobQueuePlugin.init({
|
|
54
55
|
* connection: {
|
|
55
56
|
* port: 6379
|
|
@@ -92,7 +93,7 @@ const redis_job_buffer_storage_strategy_1 = require("./redis-job-buffer-storage-
|
|
|
92
93
|
* You can change the concurrency in the `workerOptions` passed to the `init()` method:
|
|
93
94
|
*
|
|
94
95
|
* @example
|
|
95
|
-
* ```
|
|
96
|
+
* ```ts
|
|
96
97
|
* const config: VendureConfig = {
|
|
97
98
|
* plugins: [
|
|
98
99
|
* BullMQJobQueuePlugin.init({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/bullmq/plugin.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wCAAkE;AAElE,2EAAqE;AACrE,2CAAoD;AACpD,+EAAyE;AACzE,qEAAgE;AAChE,2FAAoF;AAGpF
|
|
1
|
+
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../src/bullmq/plugin.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wCAAkE;AAElE,2EAAqE;AACrE,2CAAoD;AACpD,+EAAyE;AACzE,qEAAgE;AAChE,2FAAoF;AAGpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4FG;AAeI,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAG7B;;;OAGG;IACH,MAAM,CAAC,IAAI,CAAC,OAA4B;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ,CAAA;AAXY,oBAAoB;IAdhC,IAAA,oBAAa,EAAC;QACX,OAAO,EAAE,CAAC,yBAAkB,CAAC;QAC7B,aAAa,EAAE,MAAM,CAAC,EAAE;YACpB,MAAM,CAAC,eAAe,CAAC,gBAAgB,GAAG,IAAI,kDAAsB,EAAE,CAAC;YACvE,MAAM,CAAC,eAAe,CAAC,wBAAwB,GAAG,IAAI,iEAA6B,EAAE,CAAC;YACtF,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,sDAAwB,EAAE,CAAC,CAAC;YACvE,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,SAAS,EAAE;YACP,EAAE,OAAO,EAAE,iCAAqB,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,sBAAoB,CAAC,OAAO,EAAE;YAClF,6CAAoB;SACvB;QACD,aAAa,EAAE,QAAQ;KAC1B,CAAC;GACW,oBAAoB,CAWhC;AAXY,oDAAoB"}
|
|
@@ -41,7 +41,7 @@ export interface BullMQPluginOptions {
|
|
|
41
41
|
* the job being added.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
|
-
* ```
|
|
44
|
+
* ```ts
|
|
45
45
|
* setRetries: (queueName, job) => {
|
|
46
46
|
* if (queueName === 'send-email') {
|
|
47
47
|
* // Override the default number of retries
|
|
@@ -64,7 +64,7 @@ export interface BullMQPluginOptions {
|
|
|
64
64
|
* value of exponential/1000ms will be used.
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* ```
|
|
67
|
+
* ```ts
|
|
68
68
|
* setBackoff: (queueName, job) => {
|
|
69
69
|
* return {
|
|
70
70
|
* type: 'exponential', // or 'fixed'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/job-queue-plugin",
|
|
3
|
-
"version": "2.1.0-next.
|
|
3
|
+
"version": "2.1.0-next.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "package/index.js",
|
|
6
6
|
"types": "package/index.d.ts",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@google-cloud/pubsub": "^2.8.0",
|
|
26
|
-
"@vendure/common": "2.1.0-next.
|
|
27
|
-
"@vendure/core": "2.1.0-next.
|
|
26
|
+
"@vendure/common": "2.1.0-next.5",
|
|
27
|
+
"@vendure/core": "2.1.0-next.5",
|
|
28
28
|
"bullmq": "^3.15.5",
|
|
29
29
|
"ioredis": "^5.3.0",
|
|
30
30
|
"rimraf": "^3.0.2",
|
|
31
31
|
"typescript": "4.9.5"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "b4b78ba7ac534e5995877e46421870b114f429de"
|
|
34
34
|
}
|