Commit Graph

321 Commits

Author SHA1 Message Date
bdd94096db update Job tests, use mockQueue 2016-07-11 15:48:08 -07:00
40d67829c8 pass the entire queue to the Job instance 2016-07-11 15:48:08 -07:00
a50dbf752e add success and failure event tests for jobs 2016-07-11 15:48:08 -07:00
630733b093 apped job index to event 2016-07-11 15:48:07 -07:00
c6986e3677 move constants to lib root 2016-07-11 15:48:04 -07:00
27390fef44 put job info under job property on success emitter 2016-07-11 10:27:08 -07:00
3b135bbd09 update the changelog 2016-07-08 18:36:14 -07:00
5ed3280a18 test events triggered on queue, use mock queue 2016-07-08 18:35:36 -07:00
79358a76dd create a mock queue 2016-07-08 18:34:58 -07:00
d16d3ea4dd cause worker emitter to emit on the queue instance 2016-07-08 18:34:45 -07:00
057bd26b74 emit on worker completion
with test
2016-07-08 18:00:04 -07:00
362469f541 error emitters should return more than just the error
update tests, and properly catch error conditions in worker event tests
2016-07-08 18:00:04 -07:00
a2391a30c5 update event handlers in tests
use constants values for listeners
2016-07-08 18:00:04 -07:00
3934f0cd1b update emit calls with constants 2016-07-08 18:00:04 -07:00
919fec4835 add event types to constants 2016-07-08 18:00:04 -07:00
b99f5ff1b9 don't pass headers through to jobs 2016-07-08 18:00:02 -07:00
c44d275395 update the changelog doc 2016-07-08 17:26:53 -07:00
da57fdeee7 0.9.0 2016-06-28 18:35:58 -07:00
aa2c0040d5 add indexSettings option to the docs 2016-06-28 18:35:44 -07:00
d2e843f05b collect indexSettings on queue creation, pass to job and use at index creation 2016-06-28 18:29:56 -07:00
13a78d12cc allow index settings to be passed on index creation 2016-06-28 18:28:53 -07:00
1d4c45c5d9 fix worker debug output 2016-06-28 18:28:12 -07:00
eba6748ba9 add tests for various failure types 2016-06-28 18:03:15 -07:00
257645f11c add tests for worker timeout handling 2016-06-28 18:03:06 -07:00
460d83411e properly handle job errors without a toString method 2016-06-28 17:49:45 -07:00
2b2db9c5f9 add UnspecifiedWorkerError error 2016-06-28 17:49:10 -07:00
df03738b9a rename the timeout error type 2016-06-28 17:46:06 -07:00
db1d282da2 handle resolve, reject and timeout correctly 2016-06-28 17:03:28 -07:00
a5f1d77f23 remove unused var in test 2016-06-27 14:45:31 -07:00
d73155d538 0.8.0 2016-06-27 14:41:45 -07:00
866f5948af 100 percent coverage on create_index helper 2016-06-27 14:23:49 -07:00
eae6942ec2 add tests for true/false and emits on errors 2016-06-27 14:14:23 -07:00
b0fec7d1ed don't emit on version errors 2016-06-27 14:14:06 -07:00
638c896e37 don't emit on the queue instance 2016-06-27 14:04:33 -07:00
5d5552c548 don't throw on worker failures 2016-06-27 14:04:25 -07:00
ea0ea7e6c2 0.7.0 2016-06-07 11:20:13 -07:00
85cc4bf7f8 don't throw on job creation failures
there's nothing to catch the error, it should be handled with the error event
2016-06-07 11:16:57 -07:00
34592740c7 0.6.1 2016-06-06 17:23:06 -07:00
eeafaf7d42 add test for assign headers 2016-06-06 17:22:36 -07:00
9e3515ebd5 restructure the jobs tests 2016-06-06 17:12:09 -07:00
78871f97d9 simplofy the promise chain 2016-06-06 16:59:13 -07:00
5954ee1d51 append option headers to the index request 2016-06-06 16:59:02 -07:00
a2d3fb7ffd simplify the node test matrix 2016-06-06 15:39:08 -07:00
04608b0ab2 update nyc in package.json 2016-06-06 15:26:36 -07:00
c541e07bb5 fix wording around worker functions 2016-06-06 15:15:12 -07:00
d70a8cc3ea 0.6.0 2016-06-06 15:06:53 -07:00
68ef5d2147 add client option to docs 2016-06-06 15:06:40 -07:00
1c24a4f7c1 fix worker example
add example of async worker
2016-06-06 15:06:30 -07:00
5fe4e644d6 add custom client test 2016-06-06 14:58:54 -07:00
39315dddd0 add internal properties test 2016-06-06 14:58:48 -07:00