Commit Graph

30 Commits

Author SHA1 Message Date
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
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
8d21dc6967 add optional created_by record to the doc 2016-05-16 15:02:34 -07:00
609e81fdef distiguish the doctype from the jobtype
update tests and mock elasticsearch client
2016-05-12 12:20:49 -07:00
0020050f3f use contants for defaults, use a common doctype
add tests, update readme
2016-05-12 11:48:54 -07:00
82506a74e8 set process_expiration by default
without this, the job query fails with field='process_expiration' is unrecognized
2016-05-10 16:01:24 -07:00
f5bf40cf71 prefix all the debugger namespaces 2016-05-05 11:41:57 -07:00
4318bd672f slim down the lodash dependencies 2016-05-04 13:28:07 -07:00
133564fd9b slightly less debugging when adding jobs 2016-05-03 12:01:32 -07:00
21830c9eb0 add job add debugging 2016-04-29 16:44:18 -07:00
2c9746654d create debugging output wrapper 2016-04-28 15:12:57 -07:00
662d8a177c assign job ids internally, update tests
useful for making toJSON fully sync and work without the elasticsearch document
2016-04-25 15:28:12 -07:00
58a0cf328f update toJSON, add tests, remove unused var 2016-04-25 15:16:00 -07:00
c819171393 add get and toJSON methods to jobs 2016-04-25 14:31:35 -07:00
a46d8621cc make constants more explicitly accessible 2016-04-25 14:21:28 -07:00
c79da26f2d fix bug on new job - return the promise 2016-04-25 13:43:48 -07:00
d9e19bccf8 new jobs take options again, update schema to match index, add max_attempts, update tests 2016-04-25 11:01:46 -07:00
73e302fdf0 tweak the schema a bit 2016-04-25 10:55:13 -07:00
b907c0ed71 add optional debugging output 2016-04-25 10:52:58 -07:00
1114bb25b8 create index on job creation 2016-04-22 17:47:48 -07:00
730ec68bfa change the job scontructor, update tests 2016-04-22 17:03:10 -07:00
df8bd2123b remove job options passing 2016-04-19 14:58:02 -07:00
e88695a989 add constants file, update jobs and test 2016-04-18 17:57:17 -07:00
3d89a3e86c beef up the job document's body, update tests 2016-04-18 17:44:18 -07:00
4416a5508d cleanup, job property storage 2016-04-18 16:39:07 -07:00
9f495c7791 add job object, and tests 2016-04-15 16:51:56 -07:00