UNPKG

38.2 kBMarkdownView Raw
1## [4.10.4](https://github.com/OptimalBits/bull/compare/v4.10.3...v4.10.4) (2023-02-09)
2
3
4### Bug Fixes
5
6* **retry:** handle pause queue status ([9f945d6](https://github.com/OptimalBits/bull/commit/9f945d60c69e8b5d7b46f58189a1c49a83897099))
7
8## [4.10.3](https://github.com/OptimalBits/bull/compare/v4.10.2...v4.10.3) (2023-02-03)
9
10
11### Bug Fixes
12
13* don't reschedule delay timer if closing ([#2535](https://github.com/OptimalBits/bull/issues/2535)) ([8a0292a](https://github.com/OptimalBits/bull/commit/8a0292a574df82a62d718e13d8995800fd8529d0))
14
15## [4.10.2](https://github.com/OptimalBits/bull/compare/v4.10.1...v4.10.2) (2022-11-24)
16
17
18### Bug Fixes
19
20* **queue:** throw error when needed instead of hiding it in a closure ([8a742c1](https://github.com/OptimalBits/bull/commit/8a742c1176e7147e2069602f18089d8becb4cb15))
21
22## [4.10.1](https://github.com/OptimalBits/bull/compare/v4.10.0...v4.10.1) (2022-10-13)
23
24
25### Bug Fixes
26
27* support for instantiation using redisUrl ([6288f7d](https://github.com/OptimalBits/bull/commit/6288f7de9b82e712e480510eb10c03bd4d1cd24e))
28
29# [4.10.0](https://github.com/OptimalBits/bull/compare/v4.9.0...v4.10.0) (2022-09-29)
30
31
32### Features
33
34* **types:** add typescript types to package ([e793f8d](https://github.com/OptimalBits/bull/commit/e793f8d1502bc5ed4a2e15087dc048c18e5e8644))
35
36# [4.9.0](https://github.com/OptimalBits/bull/compare/v4.8.5...v4.9.0) (2022-09-05)
37
38
39### Features
40
41* support .cjs files ([75e6775](https://github.com/OptimalBits/bull/commit/75e6775fc3720563aac9cd9a07d1722dfbdfa177))
42
43## [4.8.5](https://github.com/OptimalBits/bull/compare/v4.8.4...v4.8.5) (2022-07-27)
44
45
46### Performance Improvements
47
48* **clean:** use ZRANGEBYSCORE to improve performance ([#2363](https://github.com/OptimalBits/bull/issues/2363)) ([3331188](https://github.com/OptimalBits/bull/commit/3331188bce510e0bb4749d92cb63f4c73203d076))
49
50## [4.8.4](https://github.com/OptimalBits/bull/compare/v4.8.3...v4.8.4) (2022-06-16)
51
52
53### Bug Fixes
54
55* **worker:** better disconnect when blocking connection ([b9ea7f4](https://github.com/OptimalBits/bull/commit/b9ea7f4780948d4556548e6bf13e2c3271939d12))
56
57## [4.8.3](https://github.com/OptimalBits/bull/compare/v4.8.2...v4.8.3) (2022-05-12)
58
59
60### Bug Fixes
61
62* **stalled-jobs:** move stalled jobs to wait in batches ([2f1fb6c](https://github.com/OptimalBits/bull/commit/2f1fb6cdc1329f98b2dd30e847b5a79839db0346))
63
64## [4.8.2](https://github.com/OptimalBits/bull/compare/v4.8.1...v4.8.2) (2022-04-21)
65
66
67### Bug Fixes
68
69* unlock job when moving it to delayed ([#2329](https://github.com/OptimalBits/bull/issues/2329)) ([11eae6b](https://github.com/OptimalBits/bull/commit/11eae6b960c83b47dadb22991b2b3e239c177508))
70
71## [4.8.1](https://github.com/OptimalBits/bull/compare/v4.8.0...v4.8.1) (2022-03-21)
72
73
74### Performance Improvements
75
76* speed up clean operation ([#2326](https://github.com/OptimalBits/bull/issues/2326)) ([ef5f471](https://github.com/OptimalBits/bull/commit/ef5f4717258940042fa11f980622034cde765860))
77
78# [4.8.0](https://github.com/OptimalBits/bull/compare/v4.7.0...v4.8.0) (2022-03-19)
79
80
81### Features
82
83* have Queue#clean consult job.{finishedOn,processedOn,timestamp} ([#2309](https://github.com/OptimalBits/bull/issues/2309)) ([b7058e6](https://github.com/OptimalBits/bull/commit/b7058e6e8f4bb56febebaf9452f993883240fa9d))
84
85# [4.7.0](https://github.com/OptimalBits/bull/compare/v4.6.2...v4.7.0) (2022-03-02)
86
87
88### Features
89
90* **metrics:** add support for collecting queue metrics ([886d764](https://github.com/OptimalBits/bull/commit/886d7643819dcf52902d2e92394267dbd495c71b))
91
92## [4.6.2](https://github.com/OptimalBits/bull/compare/v4.6.1...v4.6.2) (2022-02-23)
93
94
95### Bug Fixes
96
97* better handling of maxRetriesPerRequest ([d3b9138](https://github.com/OptimalBits/bull/commit/d3b91386e30d7205efdc19bcd18fe1e5fefa3542))
98
99## [4.6.1](https://github.com/OptimalBits/bull/compare/v4.6.0...v4.6.1) (2022-02-21)
100
101
102### Bug Fixes
103
104* **sandbox:** better error reporting broken processor file ([10db479](https://github.com/OptimalBits/bull/commit/10db479731bcb8ba27c3a0e2dd4094c8e9ff1c57))
105
106# [4.6.0](https://github.com/OptimalBits/bull/compare/v4.5.6...v4.6.0) (2022-02-21)
107
108
109### Features
110
111* handle redis uri queries ([54e5463](https://github.com/OptimalBits/bull/commit/54e5463bffee1b8b56b460460c79d8751142d859))
112
113## [4.5.6](https://github.com/OptimalBits/bull/compare/v4.5.5...v4.5.6) (2022-02-20)
114
115
116### Bug Fixes
117
118* **sandbox:** wait for result of sending start command ([232ed85](https://github.com/OptimalBits/bull/commit/232ed85d4c980d94dee5d9e4c5b6f8758dbb82d9))
119
120## [4.5.5](https://github.com/OptimalBits/bull/compare/v4.5.4...v4.5.5) (2022-02-16)
121
122
123### Bug Fixes
124
125* **worker:** better closing when disconnected ([41b9404](https://github.com/OptimalBits/bull/commit/41b940457b3447619c3c2887674a8cebf1508b07))
126
127## [4.5.4](https://github.com/OptimalBits/bull/compare/v4.5.3...v4.5.4) (2022-02-14)
128
129
130### Bug Fixes
131
132* **queue:** return correct workers with getWorkers() ([193644c](https://github.com/OptimalBits/bull/commit/193644c5ed290901448f8c35ede99e1063a90f4a))
133
134## [4.5.3](https://github.com/OptimalBits/bull/compare/v4.5.2...v4.5.3) (2022-02-14)
135
136
137### Bug Fixes
138
139* **commands:** do not wait for redis to load commands ([ad7b647](https://github.com/OptimalBits/bull/commit/ad7b6474db426b4970a0d1d3ddb8a032a22c481b))
140
141## [4.5.2](https://github.com/OptimalBits/bull/compare/v4.5.1...v4.5.2) (2022-02-14)
142
143
144### Bug Fixes
145
146* **scripts:** make it easier for tools like vercel to find the .lua scripts ([8ab5b1d](https://github.com/OptimalBits/bull/commit/8ab5b1d1c3eecf41b20d97f464030377ece01640))
147
148## [4.5.1](https://github.com/OptimalBits/bull/compare/v4.5.0...v4.5.1) (2022-02-06)
149
150
151### Bug Fixes
152
153* **sandbox:** broken processor files should fail jobs ([dd0b853](https://github.com/OptimalBits/bull/commit/dd0b853a516c32baac535395377a19e361964dc8))
154
155# [4.5.0](https://github.com/OptimalBits/bull/compare/v4.4.0...v4.5.0) (2022-02-01)
156
157
158### Features
159
160* **queue:** add retryJobs for failed status ([501b2cc](https://github.com/OptimalBits/bull/commit/501b2cc49ccd0d7de82fea50144b52fa9879d1f5))
161
162# [4.4.0](https://github.com/OptimalBits/bull/compare/v4.3.0...v4.4.0) (2022-01-26)
163
164
165### Features
166
167* add support for removeOn based on time ([90f040c](https://github.com/OptimalBits/bull/commit/90f040c052325da302c99f17111a12d1afbe88bd))
168
169# [4.3.0](https://github.com/OptimalBits/bull/compare/v4.2.1...v4.3.0) (2022-01-26)
170
171
172### Features
173
174* upgrade cron version enabling new cron expressions ([79337a3](https://github.com/OptimalBits/bull/commit/79337a30758ea7e6d6b1536eb0edebcd0b3c8274))
175
176## [4.2.1](https://github.com/OptimalBits/bull/compare/v4.2.0...v4.2.1) (2022-01-17)
177
178
179### Bug Fixes
180
181* **sandbox:** exit if uncaughtException ([43dc2e6](https://github.com/OptimalBits/bull/commit/43dc2e69dfa0cbaf960ce6f1bd6c4125b1052ff9))
182
183# [4.2.0](https://github.com/OptimalBits/bull/compare/v4.1.4...v4.2.0) (2021-12-21)
184
185
186### Features
187
188* **queue:** enabled queues to share childPool instance ([#2237](https://github.com/OptimalBits/bull/issues/2237)) ([16fdbe9](https://github.com/OptimalBits/bull/commit/16fdbe90a05ae2e2bcb134a550a97dc84dfe573e))
189
190## [4.1.4](https://github.com/OptimalBits/bull/compare/v4.1.3...v4.1.4) (2021-12-14)
191
192
193### Bug Fixes
194
195* **queue:** check redisOptions is available fixes [#2186](https://github.com/OptimalBits/bull/issues/2186) ([071c51d](https://github.com/OptimalBits/bull/commit/071c51d16db58ed9f71138058dbbc25f73383e56))
196
197## [4.1.3](https://github.com/OptimalBits/bull/compare/v4.1.2...v4.1.3) (2021-12-14)
198
199
200### Bug Fixes
201
202* typo on url ([#2195](https://github.com/OptimalBits/bull/issues/2195)) ([7e7d9cb](https://github.com/OptimalBits/bull/commit/7e7d9cb58d7cb5c1a92020f7c4333932526d8e98))
203
204## [4.1.2](https://github.com/OptimalBits/bull/compare/v4.1.1...v4.1.2) (2021-12-14)
205
206
207### Performance Improvements
208
209* speed up performance of queue.clean when called with a limit ([#2205](https://github.com/OptimalBits/bull/issues/2205)) ([c20e469](https://github.com/OptimalBits/bull/commit/c20e469dcd71fd13e23e922f2720f55450311d22))
210
211## [4.1.1](https://github.com/OptimalBits/bull/compare/v4.1.0...v4.1.1) (2021-11-16)
212
213
214### Bug Fixes
215
216* **emit:** protect emit calls fixes [#2213](https://github.com/OptimalBits/bull/issues/2213) ([4978a2b](https://github.com/OptimalBits/bull/commit/4978a2b40ee840ba91e0939e86e1e3b15e8b16e9))
217
218# [4.1.0](https://github.com/OptimalBits/bull/compare/v4.0.0...v4.1.0) (2021-10-31)
219
220
221### Features
222
223* emit event on job lock extend failure ([7247b3b](https://github.com/OptimalBits/bull/commit/7247b3bb9741c5eb18ce4027ea14349cbc8504c5))
224
225# [4.0.0](https://github.com/OptimalBits/bull/compare/v3.29.3...v4.0.0) (2021-10-27)
226
227
228### Bug Fixes
229
230* force options to guarantee correct reconnects ([3ade8e6](https://github.com/OptimalBits/bull/commit/3ade8e6727d7b906a30b09bccb6dc10d76ed1b5f))
231
232
233### BREAKING CHANGES
234
235* If redis opts are missing:
236 { maxRetriesPerRequest: null,
237 enableReadyCheck: false }
238then a exception will be thrown.
239
240## [3.29.3](https://github.com/OptimalBits/bull/compare/v3.29.2...v3.29.3) (2021-10-13)
241
242
243### Bug Fixes
244
245* **name-processors:** wait for all processors when closing fixes [#1618](https://github.com/OptimalBits/bull/issues/1618) ([79ce013](https://github.com/OptimalBits/bull/commit/79ce013af695f96ff57106b213982647e0783d3f))
246
247## [3.29.2](https://github.com/OptimalBits/bull/compare/v3.29.1...v3.29.2) (2021-09-08)
248
249
250### Bug Fixes
251
252* **connection:** fail only if redis connection does not recover ([0ca4c6b](https://github.com/OptimalBits/bull/commit/0ca4c6b4d57efa78e5ca484cb8bed2a6961646a3))
253
254## [3.29.1](https://github.com/OptimalBits/bull/compare/v3.29.0...v3.29.1) (2021-08-26)
255
256
257### Bug Fixes
258
259* protect getJob with isReady, fixes [#1386](https://github.com/OptimalBits/bull/issues/1386) ([2f27faa](https://github.com/OptimalBits/bull/commit/2f27faa410f70504f24df2ebd6bb7831df21660d))
260
261# [3.29.0](https://github.com/OptimalBits/bull/compare/v3.28.1...v3.29.0) (2021-08-20)
262
263
264### Features
265
266* **jobs:** add extendLock method ([30d5959](https://github.com/OptimalBits/bull/commit/30d59590c34cb664e3b9a62695c4092c9b1ae3f3))
267
268## [3.28.1](https://github.com/OptimalBits/bull/compare/v3.28.0...v3.28.1) (2021-08-06)
269
270
271### Bug Fixes
272
273* **queue:** changed user prop to username for redisOptions ([71baea9](https://github.com/OptimalBits/bull/commit/71baea91de702d9bd1d5516f09b22599b7f13045))
274
275# [3.28.0](https://github.com/OptimalBits/bull/compare/v3.27.0...v3.28.0) (2021-08-05)
276
277
278### Features
279
280* **queue:** handle redis url containing username ([a245fc4](https://github.com/OptimalBits/bull/commit/a245fc403827fd22b08dbe1499fe843eb1ad633a))
281
282# [3.27.0](https://github.com/OptimalBits/bull/compare/v3.26.0...v3.27.0) (2021-07-27)
283
284
285### Features
286
287* support job.discard function in sandboxed processors ([5adcf2c](https://github.com/OptimalBits/bull/commit/5adcf2ceed263d46089cceefcdcaa658151c53b7))
288
289# [3.26.0](https://github.com/OptimalBits/bull/compare/v3.25.2...v3.26.0) (2021-07-16)
290
291
292### Features
293
294* **repeatable:** store key in repeat options ([dab0d82](https://github.com/OptimalBits/bull/commit/dab0d8266174f1d25ec914cff8450594d85db511))
295
296## [3.25.2](https://github.com/OptimalBits/bull/compare/v3.25.1...v3.25.2) (2021-07-16)
297
298
299### Bug Fixes
300
301* **repeatable:** honor endDate fixes [#1573](https://github.com/OptimalBits/bull/issues/1573) ([7f0db0e](https://github.com/OptimalBits/bull/commit/7f0db0e293367752971be8a1bf7b6c8cf4190350))
302
303## [3.25.1](https://github.com/OptimalBits/bull/compare/v3.25.0...v3.25.1) (2021-07-16)
304
305
306### Bug Fixes
307
308* error when .lua scripts missing in built bundle ([85307c3](https://github.com/OptimalBits/bull/commit/85307c3a8e48b910590b2682700c5062c84d32b0))
309
310# [3.25.0](https://github.com/OptimalBits/bull/compare/v3.24.0...v3.25.0) (2021-07-15)
311
312
313### Features
314
315* pass clientName to createClient function ([2a29569](https://github.com/OptimalBits/bull/commit/2a295691b88318ff64beaa7b83e03487854a7fe4))
316
317# [3.24.0](https://github.com/OptimalBits/bull/compare/v3.23.3...v3.24.0) (2021-07-15)
318
319
320### Features
321
322* **backoff:** add option to specify options for custom backoff strategy ([e573010](https://github.com/OptimalBits/bull/commit/e5730107688a41c7268a717f16302c5959eaf6f6))
323
324## [3.23.3](https://github.com/OptimalBits/bull/compare/v3.23.2...v3.23.3) (2021-07-15)
325
326
327### Bug Fixes
328
329* **delayed:** do not get lock twice fixes [#2033](https://github.com/OptimalBits/bull/issues/2033) ([2800cf8](https://github.com/OptimalBits/bull/commit/2800cf8923ccac52dcd4da4e7fd19b3404c68fe8))
330
331## [3.23.2](https://github.com/OptimalBits/bull/compare/v3.23.1...v3.23.2) (2021-07-15)
332
333
334### Bug Fixes
335
336* **job:** add default err object fixes [#2029](https://github.com/OptimalBits/bull/issues/2029) ([39684e9](https://github.com/OptimalBits/bull/commit/39684e9f941e2ea4191809fdc2aa52b3d7b267ae))
337
338## [3.23.1](https://github.com/OptimalBits/bull/compare/v3.23.0...v3.23.1) (2021-07-15)
339
340
341### Bug Fixes
342
343* wait in queue to be ready in getNextJob fixes [#1852](https://github.com/OptimalBits/bull/issues/1852) ([4e224e5](https://github.com/OptimalBits/bull/commit/4e224e5533f729b9781b1db81e1875b1bd50afb0))
344
345# [3.23.0](https://github.com/OptimalBits/bull/compare/v3.22.12...v3.23.0) (2021-07-13)
346
347
348### Features
349
350* support job.update function in sandboxed processors ([ff79fb4](https://github.com/OptimalBits/bull/commit/ff79fb494ea3e123256b35d18b46b24fbb9b8365)), closes [#1279](https://github.com/OptimalBits/bull/issues/1279) [#1608](https://github.com/OptimalBits/bull/issues/1608) [#1056](https://github.com/OptimalBits/bull/issues/1056)
351
352## [3.22.12](https://github.com/OptimalBits/bull/compare/v3.22.11...v3.22.12) (2021-07-13)
353
354
355### Bug Fixes
356
357* remove stalled job when finishing fixes [#1600](https://github.com/OptimalBits/bull/issues/1600) ([90763fd](https://github.com/OptimalBits/bull/commit/90763fd66404d8bc5a47ff8555cbe2da776c030d))
358
359## [3.22.11](https://github.com/OptimalBits/bull/compare/v3.22.10...v3.22.11) (2021-07-08)
360
361
362### Bug Fixes
363
364* **close:** clear timers after waiting jobs fixes [#1415](https://github.com/OptimalBits/bull/issues/1415) ([77b319d](https://github.com/OptimalBits/bull/commit/77b319da6acaa93351830f0a4e38b5ad1d3d8cf5))
365
366## [3.22.10](https://github.com/OptimalBits/bull/compare/v3.22.9...v3.22.10) (2021-07-01)
367
368
369### Bug Fixes
370
371* deep clone options ([#2083](https://github.com/OptimalBits/bull/issues/2083)) ([1e00a90](https://github.com/OptimalBits/bull/commit/1e00a90d1216083cdf33bc78a9753ece1acdddb2))
372
373## [3.22.9](https://github.com/OptimalBits/bull/compare/v3.22.8...v3.22.9) (2021-06-22)
374
375
376### Bug Fixes
377
378* **reprocess:** do not store job.id in added list ([3fbc506](https://github.com/OptimalBits/bull/commit/3fbc506aee4c36fd612ed18fc3a1619c0c8069d8))
379
380## [3.22.8](https://github.com/OptimalBits/bull/compare/v3.22.7...v3.22.8) (2021-06-09)
381
382
383### Bug Fixes
384
385* upgrade ioredis fixes [#1445](https://github.com/OptimalBits/bull/issues/1445) ([f6a2364](https://github.com/OptimalBits/bull/commit/f6a23648146f5a53bb2e4084f8de9b783b782bed))
386
387## [3.22.7](https://github.com/OptimalBits/bull/compare/v3.22.6...v3.22.7) (2021-05-31)
388
389
390### Bug Fixes
391
392* **obliterate:** remove job logs fixes [#2050](https://github.com/OptimalBits/bull/issues/2050) ([6ccf2b9](https://github.com/OptimalBits/bull/commit/6ccf2b90892bf16b4edb0095d6e770f978bc660a))
393
394## [3.22.6](https://github.com/OptimalBits/bull/compare/v3.22.5...v3.22.6) (2021-05-17)
395
396
397### Bug Fixes
398
399* **job:** fix job log pagination, fixes [#2031](https://github.com/OptimalBits/bull/issues/2031) ([30aa0a9](https://github.com/OptimalBits/bull/commit/30aa0a99acb4a04a12f988840bc8ccc7a014fed3))
400
401## [3.22.5](https://github.com/OptimalBits/bull/compare/v3.22.4...v3.22.5) (2021-05-11)
402
403
404### Bug Fixes
405
406* emit failed event when stalled job fails ([f68da41](https://github.com/OptimalBits/bull/commit/f68da4176658b9935cf4b63b218130008619b25b))
407
408## [3.22.4](https://github.com/OptimalBits/bull/compare/v3.22.3...v3.22.4) (2021-04-27)
409
410
411### Bug Fixes
412
413* also populate retriedOn when loading from id with excludeData ([0964b39](https://github.com/OptimalBits/bull/commit/0964b390d9190510f0d016f4eb2a3f1bc6cdb4e5))
414
415## [3.22.3](https://github.com/OptimalBits/bull/compare/v3.22.2...v3.22.3) (2021-04-23)
416
417
418### Bug Fixes
419
420* **delayed:** re-schedule updateDelay in case of error fixes [#2015](https://github.com/OptimalBits/bull/issues/2015) ([16bbfad](https://github.com/OptimalBits/bull/commit/16bbfadb270bc6c7d6df9cf5ab30b7f66028b2b3))
421
422## [3.22.2](https://github.com/OptimalBits/bull/compare/v3.22.1...v3.22.2) (2021-04-23)
423
424
425### Bug Fixes
426
427* **obliterate:** obliterate many jobs fixes [#2016](https://github.com/OptimalBits/bull/issues/2016) ([7a923b4](https://github.com/OptimalBits/bull/commit/7a923b468d5299bbdfe06d1ee7447fd810e2779b))
428
429
430## v.3.22.1
431
432- fix(obliterate): remove repeatable jobs fixes #2012
433
434[Changes](https://github.com/OptimalBits/bull/compare/v3.22.0...v3.22.1)
435
436## v.3.22.0
437
438- feat: do not rely on comma to encode jobid in progress fixes #2003
439
440[Changes](https://github.com/OptimalBits/bull/compare/v3.21.1...v3.22.0)
441
442
443## v.3.21.1
444
445- fix: safer implementation of obliterate.
446Note: If you want to use the new method "obliterate" it is highly recommended
447that you upgrade to this version, since previous version is not safe to use
448if using the colon ':' character in your queue names.
449
450
451[Changes](https://github.com/OptimalBits/bull/compare/v3.21.0...v3.21.1)
452
453## v.3.21.0
454
455- feat: add a method to "obliterate" a queue
456- fix: upgrade lodash fixes #1996
457
458[Changes](https://github.com/OptimalBits/bull/compare/v3.20.1...v3.21.0)
459
460## v.3.20.1
461
462- fix(queue): possible infinite loop when disconnect fixes #1746
463- fix(clean-priority): remove job from priority set on clean (#1405)
464- fix(sandbox): job update (#1957)
465- fix: use async version of process.send for progress and log (#1948)
466- fix: promote jobs to the right "list" when paused
467
468[Changes](https://github.com/OptimalBits/bull/compare/v3.20.0...v3.20.1)
469
470## v.3.20.0
471
472- feat(job): implement Job#retriedOn (#1868)
473- fix: job default opts fixes #1904
474
475[Changes](https://github.com/OptimalBits/bull/compare/v3.19.1...v3.20.0)
476
477## v.3.19.1
478
479- fix(getters): properly zip hmget result
480
481[Changes](https://github.com/OptimalBits/bull/compare/v3.19.0...v3.19.1)
482
483## v.3.19.0
484
485- feat: add option to exclude data on getters (#1910)
486- fix: lock ioredis to 4.18.0 to avoid breakage with newer 4.19.0+.
487
488[Changes](https://github.com/OptimalBits/bull/compare/v3.18.1...v3.19.0)
489
490## v.3.18.1
491
492- fix(repeat): remove last delayed job.
493- fix(rate-limiter): increment jobCounter only when a job is processed. fixes #1875.
494- fix(sandbox): clear dangling timeout.
495
496[Changes](https://github.com/OptimalBits/bull/compare/v3.18.0...v3.18.1)
497
498## v.3.18.0
499
500- feat: make pause forward compatible with bullmq (#1818) (@manast)
501
502[Changes](https://github.com/OptimalBits/bull/compare/v3.17.0...v3.18.0)
503
504## v.3.17.0
505
506- feat: better rate limiter (#1816) (@manast)
507- feat(sandbox): kill child workers gracefully (#1802) (@GabrielCastro)
508
509[Changes](https://github.com/OptimalBits/bull/compare/v3.16.0...v3.17.0)
510
511## v.3.16.0
512
513- feat(rate-limiter): add grouping support.
514
515[Changes](https://github.com/OptimalBits/bull/compare/v3.15.0...v3.16.0)
516
517## v.3.15.0
518
519- feat: add isPaused fixes #1274
520- fix: emit waiting event when adding a priority job (#1134)
521
522[Changes](https://github.com/OptimalBits/bull/compare/v3.14.0...v3.15.0)
523
524## v.3.14.0
525
526- feat(queue): add removeJobs function
527- fix: clamp negative job delay values to 0 to prevent thrashing
528- fix: use DEFAULT_JOB_NAME (#1585)
529- fix: remove the lazy client error handler on close (#1605)
530- fix: prevent exceeding the maximum stack call size when emptying large queues (#1660)
531
532[Changes](https://github.com/OptimalBits/bull/compare/v3.13.0...v3.14.0)
533
534## v.3.13.0
535
536- feat: add "preventParsingData" job option to prevent data parsing
537- fix: queue.clean clean job logs as well
538- fix: whenCurrentJobsFinished should wait for all jobs
539
540[Changes](https://github.com/OptimalBits/bull/compare/v3.12.1...v3.13.0)
541
542## v.3.12.1
543
544- fix: catch errors parsing invalid progress data
545- fix(pause): don't initialize bclient if not waiting for jobs to finish
546
547[Changes](https://github.com/OptimalBits/bull/compare/v3.12.0...v3.12.1)
548
549## v.3.12.0
550
551- feat: support async custom backoffs.
552- feat(sandbox): emulate job.progress function.
553
554- fix: queue.pause(true, true) doesn't pause queue.
555
556[Changes](https://github.com/OptimalBits/bull/compare/v3.11.0...v3.12.0)
557
558## v.3.11.0
559
560- feat(queue): basic support for bulk adding jobs.
561- feat(job): save data on job instance when updated.
562
563- fix(queue): whenCurrentJobsFinished shouldn't initialize bclient. Fixes #1346.
564- fix(queue): unhandled promise warning in updateDelayTimer.
565- fix(sandbox): if the child process is killed, remove it from the pool.
566
567[Changes](https://github.com/OptimalBits/bull/compare/v3.10.0...v3.11.0)
568
569## v.3.10.0
570
571- fix: remove logs automtically when using autoremove fixes #1330
572- feat: add support for keeping a specified number of jobs when using auto-remove.
573- feat: add support for node 12
574- fix: fix check for supported file types in sandboxed processors #1311
575- ci: drop support for node 6
576
577[Changes](https://github.com/OptimalBits/bull/compare/v3.9.1...v3.10.0)
578
579## v.3.9.1
580
581- fix: add log to job wrapper
582
583[Changes](https://github.com/OptimalBits/bull/compare/v3.9.0...v3.9.1)
584
585## v.3.9.0
586
587- feat: add job.log #1165
588
589[Changes](https://github.com/OptimalBits/bull/compare/v3.8.1...v3.9.0)
590
591## v.3.8.1
592
593- fix: wait for ready in cleanJobsInSet fixes #1298
594
595[Changes](https://github.com/OptimalBits/bull/compare/v3.8.0...v3.8.1)
596
597## v.3.8.0
598
599- fix: improve delay logic fixing #1226, #1222
600- feat: store finishedOn on the job instance
601- fix: return every in getRepeatableJobs #1284
602- fix: remove broken child processes #1098
603- feat: update sandbox exit handler to log signals #1252
604- fix: Ignore unknown command client error #1240
605
606[Changes](https://github.com/OptimalBits/bull/compare/v3.7.0...v3.8.0)
607
608## v.3.7.0
609
610- perf: improve update delay set logic.
611- feat: consider priority when promoting a job #1205.
612- fix: better delay for rate limited jobs.
613- feat: update port selection mechanism for child node process inspect flag.
614
615[Changes](https://github.com/OptimalBits/bull/compare/v3.6.0...v3.7.0)
616
617## v.3.6.0
618
619- feat: add function to remove repeatable jobs by key.
620- fix: properly remove sandbox events. Fixes #1179.
621- fix: make progress functions in sandbox consistently return a promise.
622
623[Changes](https://github.com/OptimalBits/bull/compare/v3.5.3...v3.6.0)
624
625## v.3.5.3
626
627- chore: upgrade ioredis to ^4.5.1.
628- fix: fix #1044 support for typescript processors.
629- chore: remove bluebird.
630- chore: use lockKey method instead of private property.
631- fix(queue): convert delay setting to number.
632
633[Changes](https://github.com/OptimalBits/bull/compare/v3.5.2...v3.5.3)
634
635## v.3.5.2
636
637- chore(queue): remove bluebird config from the codebase.
638
639[Changes](https://github.com/OptimalBits/bull/compare/v3.5.1...v3.5.2)
640
641## v.3.5.1
642
643- chore(yarn): updated yarn.lock
644
645[Changes](https://github.com/OptimalBits/bull/compare/v3.5.0...v3.5.1)
646
647## v.3.5.0
648
649- fix(delayed): pause delayed jobs #1087
650- fix(lua): correct numJobs fetch in moveToActive
651- perf(moveToActive): used local var for rate limiter
652- perf(queue): replace bluebird by native promises where possible
653- chore(queue): fix typo in forcedReconnection variable
654- feat(child-processes): catch sub process crashes
655- fix(jobs): reset 'failedReason', 'finishedOn' and 'processedOn' fields on job retry
656- fix(queue): fix Warning: cancellation is disabled
657- fix(queue): remove the correct listener in isRedisReady
658- feat(jobs): allow cancelling of retries when using custom backoff strategy
659- feat(rate-limiter): add discard config for rate-limiter
660- feat(jobs): make job progress accepts variant types
661- fix(repeatable): Fixed wrong repeatable count updates
662- fix(jobs): fix copy paste mistake for stacktrace in job toData
663- feat(child-processes): Propagate stack traces
664- feat(repeatable): add ability for cron repeatable job with startDate
665
666[Changes](https://github.com/OptimalBits/bull/compare/v3.4.8...v3.5.0)
667
668## v.3.4.8
669
670- emit waiting event when waking up sleep jobs fixing #792
671- throw error if missing processor file fixing #954
672
673[Changes](https://github.com/OptimalBits/bull/compare/v3.4.7...v3.4.8)
674
675## v.3.4.7
676
677- Fixes to deal with removing correctly in priority queues #984
678
679[Changes](https://github.com/OptimalBits/bull/compare/v3.4.6...v3.4.7)
680
681## v.3.4.6
682
683- Reverted use of arrow function that was incompatible with older versions of node.
684
685[Changes](https://github.com/OptimalBits/bull/compare/v3.4.5...v3.4.6)
686
687## v.3.4.5
688
689- Fixed Unhandled promise rejections #1012.
690
691[Changes](https://github.com/OptimalBits/bull/compare/v3.4.4...v3.4.5)
692
693## v.3.4.4
694
695- Partially fixed #845. When call queue.close() bull throws Error: Connection is closed.
696- Fixed #998. Check for existence of rate limiter options.
697- Fixed #1003. Fixed fixed repeatable jobs duplication using every.
698- Feature/provide error to custom backoff strategy.
699
700[Changes](https://github.com/OptimalBits/bull/compare/v3.4.3...v3.4.4)
701
702## v.3.4.3
703
704- Fixed #994 queue.getJobs() race condition.
705- Fixed #966 Race conditions reviving repeatable jobs.
706- Fixed getters: Update types array to include paused.
707- Fixed #958 job.finished slowdown.
708- Fixed #949 TypeError: job.queue.client.isFinished is not a function.
709- Fixed #870 TypeError when retrying jobs.
710- Fixed #942 Support for milliseconds intervals in repeatable jobs.
711
712[Changes](https://github.com/OptimalBits/bull/compare/v3.4.2...v3.4.3)
713
714## v.3.4.2
715
716- Fixed #903 Globally paused queue cannot receive job (or not shown in Arena untill queue is globally resumed).
717- Workaround for #911 Seperate process worker fails to launch when Node is started with --inspect flag
718- added missing retain on reused child job #908.
719- added more tests for child jobs.
720
721[Changes](https://github.com/OptimalBits/bull/compare/v3.4.1...v3.4.2)
722
723## v.3.4.1
724
725- Better check for closing in moveUnlockedJobsToWait, possibly fixing #806.
726
727[Changes](https://github.com/OptimalBits/bull/compare/v3.4.0...v3.4.1)
728
729## v.3.4.0
730
731- Added support for prioritized delayed jobs.
732- Added ability to process all named jobs from one process function.
733- Fixed #893, warning 'a promise was rejected with a non-error' for external queues in case of an error.
734
735[Changes](https://github.com/OptimalBits/bull/compare/v3.3.10...v3.4.0)
736
737## v.3.3.10
738
739- Faster next job fetch #868
740- Added global default options for jobs. Fixes #706.
741- Added a limit for repeatable jobs. #854.
742
743[Changes](https://github.com/OptimalBits/bull/compare/v3.3.9...v3.3.10)
744
745## v.3.3.9
746
747- Support custom backoff strategies.
748- Fixed #786. Handling of ES6 default export.
749- Fixed #782. Better handling of "isReady".
750
751[Changes](https://github.com/OptimalBits/bull/compare/v3.3.8...v3.3.9)
752
753## v.3.3.8
754
755- Fixed #812. External process doesn't terminate on `queue.close()`.
756- Fixed #830. Named Process Sent to Wrong Processor.
757- Fixed #572. Do not close external connections.
758
759[Changes](https://github.com/OptimalBits/bull/compare/v3.3.7...v3.3.8)
760
761## v.3.3.7
762
763- Fixed #807.
764- Adding ability to limit by stacktrace. #798.
765
766[Changes](https://github.com/OptimalBits/bull/compare/v3.3.6...v3.3.7)
767
768## v.3.3.6
769
770- Fixed #766, #781, #716.
771- Correctly accept DB in redis connection string.
772- Fixed global progress event.
773
774[Changes](https://github.com/OptimalBits/bull/compare/v3.3.5...v3.3.6)
775
776## v.3.3.5
777
778- Fixed #764, #762, #759.
779
780[Changes](https://github.com/OptimalBits/bull/compare/v3.3.4...v3.3.5)
781
782## v.3.3.4
783
784- Fixed #748.
785
786[Changes](https://github.com/OptimalBits/bull/compare/v3.3.3...v3.3.4)
787
788## v.3.3.3
789
790- Re-fixed #739.
791- Possibly fixed for #747.
792- Fixed removeRepeatable (missing file)
793
794[Changes](https://github.com/OptimalBits/bull/compare/v3.3.2...v3.3.3)
795
796## v.3.3.2
797
798- Fixed #721. SyntaxError: Unexpected token u in JSON at position 0.
799- Fixed #739. childs are not added to the retained set.
800- Fixed #734. fixed Promise warnings.
801
802[Changes](https://github.com/OptimalBits/bull/compare/v3.3.1...v3.3.2)
803
804## v.3.3.1
805
806- Fixed #714
807
808[Changes](https://github.com/OptimalBits/bull/compare/v3.3.0...v3.3.1)
809
810## v.3.3.0
811
812- Added a method `Queue##removeRepeatable` to remove repeatable jobs.
813- Now also emits drained as a global event.
814- Fixed #518, #624
815
816[Changes](https://github.com/OptimalBits/bull/compare/v3.2.0...v3.3.0)
817
818## v.3.2.0
819
820- Added support for running jobs in child processes #488
821
822[Changes](https://github.com/OptimalBits/bull/compare/v3.1.0...v3.2.0)
823
824## v.3.1.0
825
826- Added rate limiter support.
827- Added method to update jobs data.
828- Implemented stalled as global event.
829
830[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0...v3.1.0)
831
832## v.3.0.0
833
834- No changes.
835
836## v.3.0.0-rc.10
837
838- Fixed #666.
839- Small improvements in the repeat code.
840
841[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.9...v3.0.0-rc.10)
842
843## v.3.0.0-rc.9
844
845- Fixed #672.
846- Fixed #670
847
848[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.8...v3.0.0-rc.9)
849
850## v.3.0.0-rc.8
851
852- Enhanced job fetching #651 (faster and more reliable).
853
854[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.7...v3.0.0-rc.8)
855
856## v.3.0.0-rc.7
857
858- Fixed #659
859
860[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.6...v3.0.0-rc.7)
861
862## v.3.0.0-rc.6
863
864- Fixed #645.
865
866[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.5...v3.0.0-rc.6)
867
868## v.3.0.0-rc.5
869
870- Improved performance, specially when having many concurrent workers.
871- Fixed #609 using zsets for storing repeatable jobs.
872- Fixed #608 Event chaining no longer works.
873- Improved getters.
874- Fixed #601 Add multiple repeatable jobs with the same cron pattern.
875
876[Changes](https://github.com/OptimalBits/bull/compare/3.0.0-rc.4...v3.0.0-rc.5)
877
878## v.3.0.0-rc.4
879
880- Added support for naming workers in redis connections #530.
881- Lazy instantiation of redis clients. Fixes #526.
882- job.finished captures result from queue process. #588.
883- Caches LUA scripts to avoid reading files in every queue instantiation. #591.
884- Emit 'drain' event when queue is empty. #596.
885- store finished and processed timestamps. #594, #606.
886
887[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.3...3.0.0-rc.4)
888
889## v.3.0.0-rc.3
890
891- Fixed #579.
892- Lazy subscription to events for better performance.
893- Corrected calculation of next repeat job. #563.
894
895[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.2...v3.0.0-rc.3)
896
897## v.3.0.0-rc.2
898
899- Improved performance of moveToActive #550.
900- Fixed issue with cancelable promise #546.
901
902[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-rc.1...v3.0.0-rc.2)
903
904## v.3.0.0-rc.1
905
906- Improved error and lock handling for failed jobs #499, #539.
907- Corrected instantiation from urls #538.
908- Return jobs in proper order in jobs getters.
909
910[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-alpha.4...v3.0.0-rc.1)
911
912## v.3.0.0-alpha.4
913
914- Implemented repeatable jobs. #252.
915
916[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-alpha.3...v3.0.0-alpha.4)
917
918## v.3.0.0-alpha.3
919
920- Simplified global events #501.
921
922[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-alpha.2...v3.0.0-alpha.3)
923
924## v.3.0.0-alpha.2
925
926- Eliminated possible memory leak #503
927
928[Changes](https://github.com/OptimalBits/bull/compare/v3.0.0-alpha.1...v3.0.0-alpha.2)
929
930## v.3.0.0-alpha.1
931
932- improved job fetch mechanism. #480.
933- job.jobId changed to job.id.
934- refactored error messages into separate error module.
935- refactored lua scripts into separate files, and preloaded.
936- many atomizations and clean ups.
937- completed and failed job states are now represented in ZSETs. #190.
938
939[Changes](https://github.com/OptimalBits/bull/compare/v2.2.6...v3.0.0-alpha.1)
940
941## v.2.2.6
942
943- Persisted failedReason when storing job data.
944- added queue##isReady()
945
946[Changes](https://github.com/OptimalBits/bull/compare/v2.2.5...v2.2.6)
947
948## v.2.2.5
949
950- Fixed so that redis key prefix works properly.
951
952[Changes](https://github.com/OptimalBits/bull/compare/v2.2.4...v2.2.5)
953
954## v.2.2.4
955
956- Allow reusing certain redis connections.
957
958[Changes](https://github.com/OptimalBits/bull/compare/v2.2.3...v2.2.4)
959
960## v.2.2.3
961
962- Added getJobCounts.
963- Fixed global events #394.
964
965[Changes](https://github.com/OptimalBits/bull/compare/v2.2.2...v2.2.3)
966
967## v.2.2.2
968
969- Fixed redis script cache gets bloated after update to bull 2.0 #426
970
971[Changes](https://github.com/OptimalBits/bull/compare/v2.2.1...v2.2.2)
972
973## v.2.2.1
974
975- Re-added createClient option that was removed by mistake.
976- Corrected getJobCountByTypes, fixes #419 and #401
977
978[Changes](https://github.com/OptimalBits/bull/compare/v2.2.0...v2.2.1)
979
980## v.2.2.0
981
982- Much improved priority queues, simpler, faster and more reliable.
983- Fixed issue where lua scripts where leaking memory.
984- Improvements in local pause, fixing #446 and #447.
985- Fix to increase delay time over 24 days #244
986
987[Changes](https://github.com/OptimalBits/bull/compare/v2.1.2...v2.2.0)
988
989## v.2.1.2
990
991- Fixed Error renewing lock LockError: Exceeded 0 attempts to lock the resource #437
992- Fixed Unable to renew nonexisting lock on job fail #441
993
994[Changes](https://github.com/OptimalBits/bull/compare/v2.1.1...v2.1.2)
995
996## v.2.1.1
997
998- Catch errors produced in timers. Related to #441
999
1000[Changes](https://github.com/OptimalBits/bull/compare/v2.1.0...v2.1.1)
1001
1002## v.2.1.0
1003
1004- Fixed #397, Error: Unable to renew nonexisting lock
1005- Fixed #402, Job.prototype.finished contains error in promise
1006- Fixed #371, "Unexpected token u in JSON at position 0" while processing job
1007- New feature #363, "method to permanently fail a job"
1008- Fix job.progress() to return the correct progress
1009
1010[Changes](https://github.com/OptimalBits/bull/compare/v2.0.0...v2.1.0)
1011
1012## v.2.0.0
1013
1014- Changed redis module to ioredis fixing many issues along the way, see changes.
1015
1016[Changes](https://github.com/OptimalBits/bull/compare/v1.1.3...v2.0.0)
1017
1018## v.1.1.3
1019
1020- fixed "Broken constructor pattern from recent commit" #384
1021- fixed "Queue.prototype.getWaiting() returns empty list if Queue is paused" #342
1022
1023[Changes](https://github.com/OptimalBits/bull/compare/v1.1.2...v1.1.3)
1024
1025## v1.1.2
1026
1027- regained backwards compatibility in events by using disturbed 1.0.6
1028
1029[Changes](https://github.com/OptimalBits/bull/compare/v1.1.1...v1.1.2)
1030
1031## v1.1.1
1032
1033- Returned this in queue##on and queue##once for backwards compatibility.
1034- [Fixes PriorityQueue Events and Local Worker Pause/Resume](https://github.com/OptimalBits/bull/pull/341)
1035
1036[Changes](https://github.com/OptimalBits/bull/compare/v1.1.0...v1.1.1)
1037
1038## v1.1.0
1039
1040- Fixed [job corruption issue](https://github.com/OptimalBits/bull/pull/359)
1041- The job id can be [overridden](https://github.com/OptimalBits/bull/pull/335) to implement job throttling behavior
1042- Added [`removeOnComplete` job option](https://github.com/OptimalBits/bull/pull/361)
1043- [More robust job retry](https://github.com/OptimalBits/bull/pull/318)
1044- Events are [now broadcast to all workers](https://github.com/OptimalBits/bull/commit/d55ad1c8f44f86be9b4e9f4fa9a3fc8a16c6e02d)
1045
1046[Changes](https://github.com/OptimalBits/bull/compare/v1.0.0...v1.1.0)
1047
1048## v1.0.0
1049
1050- improvements in clean (fixes and performance).
1051
1052[Changes](https://github.com/OptimalBits/bull/compare/v1.0.0-rc4...v1.0.0)
1053
1054## v1.0.0-rc4
1055
1056- fixed lock renew logic.
1057- atomized code for getting stalled jobs.
1058
1059[Changes](https://github.com/OptimalBits/bull/compare/v1.0.0-rc3...v1.0.0-rc4)
1060
1061## v1.0.0-rc3
1062
1063- smaller fixes.
1064
1065[Changes](https://github.com/OptimalBits/bull/compare/v1.0.0-rc2...v1.0.0-rc3)
1066
1067## v1.0.0-rc2
1068
1069- Improved locking when removing and processing stalled jobs.
1070- Fixed #302 EVALSHA failure.
1071- Fixed #295 error with redis 3.2.
1072- Correctly allows the specification of the db
1073- Honor start/end range for complete/failed jobs.
1074- Fixed #277 Memory Leaks With Large Queue.
1075- Support for custom key prefix for redis keys.
1076
1077[Changes](https://github.com/OptimalBits/bull/compare/v1.0.0-rc1...v1.0.0-rc2)
1078
1079## v1.0.0-rc1
1080
1081- Removed all potential dangerous hazards by atomizing many operations using
1082 cached LUA scripts.
1083- Improved performance around 400% compared to previous version.
1084- Better pause/resume (#266), and added pause for local workers.
1085- Fixed #272, #271, #261, #253, #240, #239
1086
1087[Changes](https://github.com/OptimalBits/bull/compare/v0.7.2...v1.0.0-rc1)
1088
1089## v0.7.2
1090
1091- Added local pause/resume functionality
1092- fixed memory leaks present in the run promise chain.
1093- fixed "Illegal access to a strict mode caller function".
1094
1095[Changes](https://github.com/OptimalBits/bull/compare/v0.7.1...v0.7.2)
1096
1097## v0.7.1
1098
1099- fixed storing of stacktraces
1100
1101[Changes](https://github.com/OptimalBits/bull/compare/v0.7.0...v0.7.1)
1102
1103## v0.7.0
1104
1105- store the return value from the job handlers.
1106- store stacktraces.
1107- improvements in delayed jobs.
1108
1109[Changes](https://github.com/OptimalBits/bull/compare/v0.6.0...v0.7.0)
1110
1111## v0.4.0
1112
1113- added a Queue##clean method
1114
1115[Changes](https://github.com/OptimalBits/bull/compare/v0.3.0...v0.4.0)
1116
1117## v0.3.0
1118
1119- added support for custom clients.
1120- added test support for node 0.12.
1121- timeout improvements.
1122- unit test improvements.
1123- added timeout to queue pop blocking call.
1124- removed when dependency.
1125
1126[Changes](https://github.com/OptimalBits/bull/compare/v0.2.7...v0.3.0)
1127
1128## v0.2.7
1129
1130[Changes](https://github.com/OptimalBits/bull/compare/v0.2.6...v0.2.7)
1131
1132## v0.2.6
1133
1134- [Fix] #103 When a queue start it do not process delayed job.
1135 [Changes](https://github.com/OptimalBits/bull/compare/v0.2.5...v0.2.6)
1136
1137## v0.2.5
1138
1139- [upgrade] Upgraded node redis to version 0.12.x
1140- [improvement] eslinted all code.
1141- [fix] added missing token when calling takeLock on jobs.
1142
1143[Changes](https://github.com/OptimalBits/bull/compare/v0.2.4...v0.2.5)
1144
1145## v0.2.4
1146
1147[Changes](https://github.com/OptimalBits/bull/compare/v0.2.3...v0.2.4)
1148
1149## v0.2.3
1150
1151[Changes](https://github.com/OptimalBits/bull/compare/v0.1.9...v0.2.3)
1152
1153## v0.1.9
1154
1155- [Improvement] Faster job removal. (manast)
1156
1157## v0.1.8
1158
1159- [Improvement] Better promisification of redis methods. (manast)
1160
1161## v0.1.7
1162
1163- [Feature] Added a convenience method for getting a job. (loginx)
1164- [Fix] Only set a redis db from options if defined. (jboga)
1165- [Fix] Fixed issue #52. (manast)
1166
1167## v0.1.6
1168
1169- [Fix] Improved and corrected job's getters.
1170- [Fix] Automatically restart queues in the event of redis disconnections.
1171- [Feature] Added support for adding jobs in a LIFO fashion.