UNPKG

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