|
|
83a0352202
|
chore: rename module to elastiq
|
2017-08-14 15:17:40 -07:00 |
|
|
|
bb898e26c2
|
add 20x delay when search results in an error
|
2017-08-08 10:55:33 -07:00 |
|
|
|
6bdf7163b6
|
add new events
one for when the search is completed, and one for when the job poller is ready
|
2017-08-08 10:55:33 -07:00 |
|
|
|
128905cdb4
|
track poller running state
use setTimeout, and wait for the search and job processing to complete before polling for jobs again
|
2017-08-08 10:55:33 -07:00 |
|
|
|
01adab4174
|
move poller state into this._poller
|
2017-08-08 10:55:33 -07:00 |
|
|
|
32fb6a92f5
|
better fix for the worker doctype
use the queue's doctype if one is not provided. also adds the option to the readme
|
2017-05-23 18:11:16 -07:00 |
|
|
|
c6c73f6dd2
|
fix code and tests, use custom errors
|
2017-02-28 15:52:41 -07:00 |
|
Joe Fleming
|
3cc8573ab0
|
Merge pull request #13 from w33ble/fix/worker-destroy
Worker destroy() will stops job polling
|
2016-12-16 16:57:52 -07:00 |
|
|
|
c64c5c80d6
|
call _stopJobPolling on destroy
|
2016-12-16 16:50:48 -07:00 |
|
|
|
4befaee4cc
|
minor syntax change
make running more clearly a private state variable
|
2016-12-16 16:45:23 -07:00 |
|
jason allen
|
7c1189cf3c
|
[FIX] worker destroy will really stop it.
|
2016-12-15 09:27:27 -08:00 |
|
Jason Allen
|
3d34642de4
|
Fix typo in Worker Class name
It was mistakenly called Job.
|
2016-12-01 07:58:35 -08:00 |
|
Court Ewing
|
7af0c82080
|
Use excludes instead of exclude in ES _source query
As of ES 5.0, you must use the plural name.
|
2016-09-14 12:24:11 -04:00 |
|
|
|
8e8609eede
|
always emit job failure event
|
2016-07-12 11:15:05 -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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
57c1bd1819
|
allow client to be passed with registering worker
|
2016-06-06 14:50:24 -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 |
|
|
|
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 |
|
|
|
38532a6296
|
fix scoping issue, add debugging on worker register
|
2016-05-10 17:28:27 -07:00 |
|
|
|
aa5ea72e3b
|
swollow errors saving job output, include error in debugging output
|
2016-05-10 17:24:05 -07:00 |
|
|
|
e077442340
|
add debugging on job timeout
|
2016-05-10 16:57:40 -07:00 |
|
|
|
f5bf40cf71
|
prefix all the debugger namespaces
|
2016-05-05 11:41:57 -07:00 |
|
|
|
902f1aeb60
|
remove bluebird dependency
|
2016-05-04 12:44:16 -07:00 |
|
|
|
ecfd0e1d4a
|
use reduce to serialize claimJob attempts
|
2016-05-04 12:43:10 -07:00 |
|
|
|
1357810191
|
ease up on the debugging output
|
2016-05-04 12:41:37 -07:00 |
|
|
|
6ce08acd26
|
worker functions use promises for async
|
2016-05-04 11:41:49 -07:00 |
|
|
|
f725824c5f
|
emit job fail events, don't throw
|
2016-05-03 11:35:09 -07:00 |
|
|
|
14ea4617e2
|
change the default content body
|
2016-05-03 09:58:08 -07:00 |
|
|
|
696cf78464
|
handle worker timeouts
|
2016-05-02 17:51:06 -07:00 |
|
|
|
7dadeeb111
|
refactoring failures
|
2016-05-02 14:42:27 -07:00 |
|
|
|
60d486b804
|
add check for failed status and complete time
|
2016-05-02 14:31:14 -07:00 |
|