Commit Graph

209 Commits

Author SHA1 Message Date
1357810191 ease up on the debugging output 2016-05-04 12:41:37 -07:00
48f34a8bc8 update tests with sync or promise workers 2016-05-04 11:42:06 -07:00
6ce08acd26 worker functions use promises for async 2016-05-04 11:41:49 -07:00
5efccc4435 rename project to esqueue 2016-05-03 16:30:54 -07:00
9b31859eed alphabetize npm scripts, clean lib on build 2016-05-03 16:12:50 -07:00
2ef90d88cf add additional files to npmignore 2016-05-03 16:12:21 -07:00
4504c657e6 try switching to codecov 2016-05-03 15:13:45 -07:00
35ca41b955 add coveralls integration 2016-05-03 14:46:44 -07:00
594e249ee0 add test coverage reporting
via nyc. also change non-build test runner script name
2016-05-03 14:22:01 -07:00
ed7322b0d7 bring the version down
this is probably not ready for production use, and should be pre-1.0
2016-05-03 14:09:46 -07:00
133564fd9b slightly less debugging when adding jobs 2016-05-03 12:01:32 -07:00
9ef3fb8cec proper async promise tests, add tests for worker timeouts
also fix intermittent issue with complete_at time check
2016-05-03 11:38:17 -07:00
f722bbf5e1 only use fake clocks in tests were required 2016-05-03 11:36:55 -07:00
f725824c5f emit job fail events, don't throw 2016-05-03 11:35:09 -07:00
552abb7ddd add tests for the output formatting 2016-05-03 09:58:39 -07:00
14ea4617e2 change the default content body 2016-05-03 09:58:08 -07:00
d582989e35 simplify job error tests 2016-05-03 09:48:15 -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
a143092e64 add completed time and status to failed jobs
with tests
2016-05-02 12:59:23 -07:00
b12aa87ad3 add completed_at time, add update tests 2016-05-02 12:57:11 -07:00
7191a2bed0 add tests for handling job failures 2016-05-02 12:45:46 -07:00
f0b0e10b84 remove debugging output 2016-05-02 12:45:32 -07:00
f35756f70b initial perform job tests 2016-04-29 17:57:14 -07:00
b2781a6ccf client.get: mix in source data, fix default index and type params 2016-04-29 17:52:24 -07:00
72389b65b2 add checks for version conflicts 2016-04-29 17:25:44 -07:00
d00d12683b add fail job tests 2016-04-29 17:15:39 -07:00
3b8127874b only send attempt message if no output
always append failure message if one exists
2016-04-29 17:15:29 -07:00
683903512b fix mock defaults 2016-04-29 16:52:35 -07:00
5d9fcd14b9 add node 5 to travis
why not...
2016-04-29 16:45:21 -07:00
a0970f8ba7 add more worker tests 2016-04-29 16:44:46 -07:00
d4d38255f6 switch job running to callback style 2016-04-29 16:44:30 -07:00
21830c9eb0 add job add debugging 2016-04-29 16:44:18 -07:00
1018e2b3a8 use in-publish to avoid stupid prepublish npm logic 2016-04-29 16:03:18 -07:00
50c0563479 add a more useful readme 2016-04-29 15:47:58 -07:00
8efe69a443 add missing bluebird library 2016-04-29 15:08:41 -07:00
fcb26ca90e update readme, add travis 2016-04-29 15:04:48 -07:00
54d3be6929 don't clobber error output, append worker output 2016-04-28 17:21:03 -07:00
d3094375dd stop and start job polling when trying to claim jobs
also return claiming and execution Promise
2016-04-28 16:25:45 -07:00
379a8f096c simplify failed job update error handler 2016-04-28 16:24:28 -07:00
03eca43bbf move job polling into another method, add stop method 2016-04-28 16:15:09 -07:00
1954141345 mock es client search and update 2016-04-28 16:14:39 -07:00
c32d806886 make the size limit configurable 2016-04-28 15:14:44 -07:00
019d9f98a2 query for, claim and process jobs
process step is still a WIP
2016-04-28 15:13:19 -07:00
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