Commit Graph

76 Commits

Author SHA1 Message Date
Julian Hundeloh
e13966146b fix(bull): expose Redis clients (#35103)
* fix(bull): expose Redis clients

* test: add test

* fix: lint
2019-04-30 10:09:07 -07:00
Silas Rech
de12981020 [bull] allow supplying of the queue type when creating a new instance (#34154) 2019-03-25 09:29:06 -07:00
Silas Rech
c0fc0677a3
[bull] add function overloading 2019-03-22 14:43:44 +01:00
Maxime Poulin
cf3cfac7b0 Add support for Redis Cluster in Bull (#33774)
* Add support for Redis Cluster in Bull

* Added test for Redis Cluster in Bull
2019-03-18 09:01:56 -07:00
Christian Düfel
f756a4887d [bull] Queue extends EventEmitter 2019-02-16 17:46:55 +01:00
Patrick Chatain
34b8119dd7 change failedReason type to any 2019-02-08 16:34:23 +01:00
Patrick Chatain
8ae30e8f89 add toJson job method 2019-02-03 14:32:30 +01:00
Patrick Chatain
ea2b369907 [Bull] Add missing getJobCountByTypes definition (#32514)
* Add getJobCountByTypes definition

* Update index.d.ts

* getJobCountByTypes types can also be a string
2019-01-28 16:16:21 -08:00
Daniel Hritzkiv
21e7225bc3
[bull] add name property to Queue interface 2019-01-21 15:25:04 -05:00
Daniel Rosenwasser
ca809fa16f
Merge pull request #32280 from dhritzkiv/patch-12
[bull] Add lockRenewTime to AdvancedSettings interface
2019-01-20 18:30:27 -08:00
Daniel Rosenwasser
1b12fae06c
Merge pull request #32253 from mtAlves/hotfix/bull
[bull]fix RateLimiter
2019-01-18 17:02:30 -08:00
Daniel Hritzkiv
9f60ba4b8a
[bull] Add lockRenewTime to AdvancedSettings interface 2019-01-17 23:22:24 -05:00
mtAlves
0ba9705ad0 change max and duration to not optional 2019-01-17 18:07:47 -02:00
mtAlves
de507537e5 fix RateLimiter 2019-01-17 15:00:33 -02:00
Daniel Hritzkiv
7159e5a15b
Update index.d.ts
Remove nullable from returnvalue (as any already encompasses null)
2019-01-17 11:07:28 -05:00
Daniel Hritzkiv
e49d357d1d
Update index.d.ts
Mark returnvalue as nullable
2019-01-16 20:42:32 -05:00
Daniel Hritzkiv
ff5cc58a47
Update index.d.ts
Remove whitespace
2019-01-16 16:37:00 -05:00
Daniel Hritzkiv
33d0fe9dfd
[bull] Add additional job properties
including: queue, name, and stracktrace

Rationale: it is useful to know which queue (and named processor) this Job was in.
2019-01-16 16:05:38 -05:00
Gabriel Castro
3fdd74a073 [bull] Add processedOn and finishedOn to Job (#31567) 2018-12-20 10:47:38 -08:00
Christian Düfel
df0bcd09d2 Replace Bluebird by native Promises 2018-12-02 17:20:46 +01:00
Christian Düfel
7ea37092f0 Callbacks have to return Promise 2018-11-29 00:53:29 +01:00
Daniel Hritzkiv
99db723f07
Fix error type in backoffStrategies interface
change `typeof Error` (resolves to `ErrorConstructor`) to just `Error`.

This allows accessing actual error instance properties (message, etc.)
2018-11-28 12:34:36 -05:00
Kjell-Morten
b9c4d107b5 bull: Correct job status for Queue#clean (bull has a typo here and uses 'wait' instead of 'waiting') (#30315)
* bull: Correct job status 'waiting' to 'wait' for Queue#clean

* bull: Correct job status for clean event callback
2018-11-15 14:25:06 -08:00
Dan Manastireanu
3ea5ad14c4 @types/bull Update to version 3.4.8. Closes #22673 #23965 #18911 (#29875)
* @types/bull Update to version 3.4.8. Closes #22673 #23965 #18911

* Fix return type for moveTo* methods
2018-10-22 09:38:28 -07:00
Alec Brunelle
d157a0af25 changes based on other pr being merged 2018-08-20 16:05:48 -04:00
Alec Brunelle
589188a626 Add types to private functions
- Job.moveToCompleted
- Job.moveToFailed
- Queue.getNextJob
- Also add null possibility to Queue.getJob
2018-08-02 14:38:33 -04:00
Andy
7d44adf211 bull: make backoffStrategies optional (#27697) 2018-07-30 12:18:16 -07:00
Bond
be6b064799 Support custom backoff strategy (#27529)
ddc0879e26
2018-07-27 08:56:00 -07:00
Maxime VAST
10afd44fc9 Add typings for getJobs and fix remove repeatable 'repeat' param (#27602) 2018-07-26 11:58:04 -07:00
Bond
293adc3195 Add functions to take and release locks. (#27491)
Add functions to take and release locks.

742a86e0af/lib/job.js (L153-L180)
2018-07-23 08:28:38 -07:00
Bond
e1d9a3c9f4 GetJob returns a promise of job or null (#27448)
Says it in the jsdoc even.
2018-07-20 17:58:10 -07:00
Luke
2b130f9106 Bull: Add 'every' RepeatOptions property (#27227)
* add 'every' repeatoptions property

* fix linting

* version number

* remove patch version from header
2018-07-15 12:27:05 -07:00
segayuu
1a07f27101 [@types/Bluebird] Make iterative methods rigid types without type parameters. (#27216)
* Resolve bluebird(Array) method

* upgrade typescript version from bluebird-global

* move testfile
Reason: There are too many type definition files
  depending on jquery and it can not be managed.

* upgrade typescript version from bluebird require packages

* fix lint error: use-default-type-parameter
2018-07-12 09:23:46 -07:00
David Koblas
60009ab2a6 Updated the the event handlers with generic T 2018-06-05 17:44:52 -04:00
David Koblas
4bcbb70240 Add generic types to Queue and Job 2018-06-05 16:59:15 -04:00
sebastian krämer
106d45fba7
add property attemptsMade 2018-05-26 21:28:17 +02:00
Nathan Shively-Sanders
625451856a
Merge pull request #24475 from hisorange/master
Add missing 'bclient' type to Bull types
2018-03-28 09:09:30 -07:00
hisorange
f3b3166bb0 Add missing 'bclient' type 2018-03-23 10:16:38 +01:00
Daniel Rosenwasser
e8bc07e649
Merge pull request #23719 from hisorange/bull-fix
Add missing limit option to bull package.
2018-03-17 18:19:06 -07:00
Arthur Ozga
692bef999e
Merge pull request #23806 from alexsasharegan/master
fix(bull): adds `Queue.process` overloads
2018-03-15 13:37:44 -07:00
Alex Regan
c8e95cf226 fix(bull): switch overload to Promise return 2018-02-27 19:32:33 -07:00
Alex Regan
1426182dcd fix(bull): union callback param, not return val 2018-02-27 08:19:14 -07:00
Oleg Repin
be24886f7a [bull] add defaultJobOptions to QueueOptions 2018-02-26 11:28:31 +03:00
Alex Regan
ebcbc212b7 fix(bull): merge overload decls with same arity 2018-02-20 15:20:04 -07:00
Alex Regan
2cd2bd8726 fix(bull): adds Queue.process overloads 2018-02-20 15:09:07 -07:00
Andy
38a16c7ac7
bull: Remove duplicate getWaiting definition (#23715) 2018-02-20 08:34:40 -08:00
hisorange
7b5682c241 Add missing limit option 2018-02-16 21:10:24 +01:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Daniel Rosenwasser
325dfee714
Merge pull request #23231 from btkostner/master
update bull pause and resume params
2018-02-13 12:01:10 -08:00
Andy
2a9d2f8d59
Convert more "import *" to "import =" (#23446) 2018-02-05 18:27:31 -08:00