|
|
83f267a028
|
add dateSeparator on index creation
|
2016-08-22 11:11:57 -07:00 |
|
|
|
faeb705dee
|
add date separator constant, update tests
|
2016-08-22 11:11:38 -07:00 |
|
|
|
10003e147d
|
allow valid datestamp separator to be specified
|
2016-08-22 10:49:01 -07:00 |
|
|
|
597052dc4e
|
add test for passing headers on job creation
|
2016-07-21 14:39:07 -07:00 |
|
|
|
2c5519c253
|
pass headers on job creation
|
2016-07-21 14:31:32 -07:00 |
|
|
|
b916d1352a
|
rename client creation module
|
2016-07-21 14:31:15 -07:00 |
|
|
|
2c025e02c9
|
refresh the index after adding job
makes the job searchable after the creation event emits
|
2016-07-19 12:49:27 -07:00 |
|
|
|
8e8609eede
|
always emit job failure event
|
2016-07-12 11:15:05 -07:00 |
|
|
|
bfe8799b90
|
add job creation error
use it on creation error, update tests
|
2016-07-11 16:03:59 -07:00 |
|
|
|
c758fb55a6
|
rename the worker timeout error
|
2016-07-11 15:48:31 -07:00 |
|
|
|
8cd2fde3a8
|
add test for worker failure event
|
2016-07-11 15:48:08 -07:00 |
|
|
|
9a71fcc7b5
|
emit on any worker job failure
|
2016-07-11 15:48:08 -07:00 |
|
|
|
9cfc080b64
|
emit events on queue instance
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
57c1bd1819
|
allow client to be passed with registering worker
|
2016-06-06 14:50:24 -07:00 |
|
|
|
a1a7b9e213
|
add tests for passing client on job create
also fix issue where the wrong client was being used to create the index
|
2016-06-06 14:48:01 -07:00 |
|
|
|
dcecd4020b
|
allow new client instant to be passed on job creation
|
2016-06-06 14:47:04 -07:00 |
|
|
|
ca0da61a69
|
default created_by to false
|
2016-05-19 14:11:52 -07:00 |
|
|
|
89c08068dd
|
use filter instead of must in query
faster, and the score does not matter here
|
2016-05-17 13:37:22 -07:00 |
|
|
|
8d21dc6967
|
add optional created_by record to the doc
|
2016-05-16 15:02:34 -07:00 |
|
|
|
49b982db99
|
change priority field to byte
|
2016-05-16 14:09:42 -07:00 |
|
|
|
9aa8eed297
|
filter output when searching for jobs
|
2016-05-16 14:09:24 -07:00 |
|
|
|
868c808db7
|
missing indices need to return an array
|
2016-05-13 14:56:50 -07:00 |
|
|
|
c51ea64bdd
|
[worker] swollow missing index errors
|
2016-05-13 14:35:39 -07:00 |
|
|
|
df9508808b
|
use jobtype in worker, update query
also simplify the query a bit and use constant_score
|
2016-05-12 14:08:43 -07:00 |
|
|
|
609e81fdef
|
distiguish the doctype from the jobtype
update tests and mock elasticsearch client
|
2016-05-12 12:20:49 -07:00 |
|
|
|
3375335d24
|
add type field, switch to string types
should allow elasticsearch 2.x use
|
2016-05-12 11:49:54 -07:00 |
|
|
|
0020050f3f
|
use contants for defaults, use a common doctype
add tests, update readme
|
2016-05-12 11:48:54 -07:00 |
|