UNPKG

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