Commit Graph

90 Commits

Author SHA1 Message Date
2c9746654d create debugging output wrapper 2016-04-28 15:12:57 -07:00
6ea711da87 amend the schema - single output object, add cerated_by 2016-04-26 17:40:57 -07:00
9e501ace93 add cancelled status 2016-04-26 17:40:26 -07:00
0f3b21f1e8 add worker query for outstanding jobs 2016-04-26 17:40:14 -07:00
f1dc6e60dc make workers private, add getter, add destroy test 2016-04-25 17:00:37 -07:00
eb033d9676 queue should track and tear down workers, with tests 2016-04-25 16:36:21 -07:00
5c4340adfc start on the worker logic 2016-04-25 16:28:30 -07:00
7f554014a0 tweak the schema, status is a keyword 2016-04-25 16:27:07 -07:00
6ff2f2cb99 rename add to addJob 2016-04-25 15:30:17 -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
b78c5763ce check in create_index module, with tests 2016-04-22 17:53:48 -07:00
1114bb25b8 create index on job creation 2016-04-22 17:47:48 -07:00
bb97b7960b update job status constants 2016-04-22 17:15:25 -07:00
730ec68bfa change the job scontructor, update tests 2016-04-22 17:03:10 -07:00
a3a0c2b261 add index creation to init tasks 2016-04-22 16:50:41 -07:00
64945556ff rename create client, fix client instance test 2016-04-22 16:49:38 -07:00
549095dfff update interval module, add tests 2016-04-22 13:38:12 -07:00
d357971554 add date interval module 2016-04-22 11:25:06 -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
1b5f2af004 add a worker module 2016-04-18 16:39:35 -07:00
4416a5508d cleanup, job property storage 2016-04-18 16:39:07 -07:00
a002271e26 don't track jobs internally
it'll likely make more sense to just look them up at request time
2016-04-18 14:54:49 -07:00
9f495c7791 add job object, and tests 2016-04-15 16:51:56 -07:00
600f2eb529 make index the first param 2016-04-15 16:05:43 -07:00
facf8d89e3 add create_client tests 2016-04-14 17:45:32 -07:00
d0abad344a add default setting values 2016-04-14 17:01:50 -07:00
981bf09aab remove Joi validation, add createClient, update tests 2016-04-14 16:57:28 -07:00
992810d90c rename helper path 2016-04-14 15:33:17 -07:00
b0e0f9452b refactor - move validation into new module 2016-04-14 15:28:42 -07:00
5619612943 update constructor, add option validation tests 2016-04-14 15:04:49 -07:00
252f72a948 inital boilerplate checkin 2016-04-13 17:09:08 -07:00