Commit Graph

2071 Commits

Author SHA1 Message Date
Rafa de la Torre
2d9a5e9655 Move cyclomatic complexity to the factory #422 2017-06-27 16:05:05 +02:00
Rafa de la Torre
c8e42f561d Reduce cyclomatic complexity (jshint 2/2) #422 2017-06-27 15:35:51 +02:00
Rafa de la Torre
34ccfc10df Please jshint (1/2) #422 2017-06-27 13:26:14 +02:00
Rafa de la Torre
8c2e5f74df Add tableCacheEnabled setting to sample config #422 2017-06-27 13:14:13 +02:00
Rafa de la Torre
23cd744eda Skip tests that need of a real tableCache #422
Skip those tests when the tableCache is disabled, but run them
otherwise.
2017-06-27 12:58:27 +02:00
Rafa de la Torre
bf478cabb2 Fix initialization of NoCache #422 2017-06-27 12:44:11 +02:00
Rafa de la Torre
bc71889f93 First attempt at removing tableCache #422 2017-06-27 12:10:24 +02:00
Daniel García Aubert
00cbfca72e Improve assertion 2017-06-09 16:56:44 +02:00
Daniel García Aubert
aa66000848 Going green: use replacer parameter in JSON.stringify method to not cast special number values to null 2017-06-08 12:42:37 +02:00
Daniel García Aubert
1977f4a782 Going red: special float values parsed to null 2017-06-08 12:31:18 +02:00
Raul Ochoa
14846b254e Document gc_interval configuration param 2017-04-24 18:28:10 +02:00
Mario de Frutos
f77df67eba Stubs next version 2017-04-18 14:46:41 +02:00
Mario de Frutos
61716d3e3a Release 1.45.0 2017-04-18 14:43:43 +02:00
Mario de Frutos
582d684591 Merge pull request #418 from CartoDB/413-configurable-zip-command
Make zip command path configurable
2017-04-18 13:24:45 +02:00
Mario de Frutos
3a99020632 Added regexp for the test to matches both 0.10 and 6.X node version 2017-04-18 12:15:47 +02:00
Mario de Frutos
5e9fcc5c8f Added test to check error when zip command file is not present 2017-04-18 12:15:47 +02:00
Mario de Frutos
da42daa536 Improved error message for zip spawn command 2017-04-18 12:15:47 +02:00
Daniel García Aubert
e4eeb9e1f6 Clean commented code 2017-04-18 12:15:47 +02:00
Daniel García Aubert
e0f9209017 Attach error handler while spawning zip command 2017-04-18 12:15:47 +02:00
Daniel García Aubert
884d3aea0a Dont call 'next' callback twice, include error message if zip don't exit normally 2017-04-18 12:15:47 +02:00
Daniel García Aubert
4b98b7056a Make zip command path configurable 2017-04-18 12:15:47 +02:00
Mario de Frutos
9a2e832c83 Merge pull request #419 from CartoDB/fix-ogr-spawn
Add error callback to ogr command while spawning
2017-04-18 12:15:11 +02:00
Daniel García Aubert
6dba06130b Retur a proper error message when ogr2ogr command fails 2017-04-18 11:40:37 +02:00
Daniel García Aubert
d60e2107af Add error callback to ogr command while spawning 2017-04-11 09:43:25 +02:00
Daniel García Aubert
2276187c27 Release 1.44.2 2017-04-05 15:05:29 +02:00
Daniel
41eddb3bb4 Merge pull request #416 from CartoDB/fix-enqueue-first
Update queue index while enqueueing jobs to the top of queue
2017-04-05 15:04:06 +02:00
Daniel García Aubert
7d24ce671b Update queue index while enqueueing jobs to the top of queue 2017-04-05 11:43:29 +02:00
Daniel García Aubert
bc43680202 Stubs next version 2017-04-04 17:02:07 +02:00
Daniel García Aubert
7d2e1e11ea Release 1.44.1 2017-04-04 17:00:44 +02:00
Daniel
c4557f3c20 Merge pull request #415 from CartoDB/avoid-scan-to-discover-queues
Avoid scan command to discover queues
2017-04-04 16:49:46 +02:00
Raul Ochoa
ea9454d87c Add test to validate old jobs will get discovered 2017-04-04 15:42:34 +02:00
Daniel García Aubert
c1dff1e395 Improve naming 2017-04-04 10:34:07 +02:00
Daniel García Aubert
25a291bb38 Improve waek assertion 2017-04-04 09:50:45 +02:00
Daniel García Aubert
36d5dc1719 Queue seeker refactor:
- Extract from job subcriber everything related to queue dicovering
 - Job Queue is responsible of queue dicovering and exposes functions to scan user queues.
 - Batch creates an interval to consume queues
 - Now Batch.start() does:
  * Finds existing queues from metadata, adding to queue index the ones that are not indexed yet
  * Binds callback to process jobs for every queue found.
  * Inits queue consumer interval
  * Subscribes to PUB/SUB channel
2017-04-03 19:26:21 +02:00
Daniel García Aubert
3a0bbc1ead Avoid use sleep function 2017-04-03 14:40:23 +02:00
Daniel García Aubert
dbdfe86171 Remove mocha hooks 2017-04-03 13:07:27 +02:00
Daniel García Aubert
e4e6207565 Add test 2017-04-03 12:59:23 +02:00
Daniel García Aubert
24ff1cf808 Discover and add to index queues of users with jobs on batch service startup 2017-04-03 12:34:30 +02:00
Daniel García Aubert
8f35e1d1af Fix typo 2017-04-03 11:38:20 +02:00
Daniel García Aubert
dd7cb73337 Remove unused dependency 2017-03-31 14:34:24 +02:00
Daniel García Aubert
da2a98cdb5 Merge branch 'master' into avoid-scan-to-discover-queues 2017-03-31 14:31:40 +02:00
Daniel García Aubert
8012fe26aa Avoid scan behaviour to discover active queues of user's jobs, now keeps an index to know which queues are available 2017-03-31 14:30:33 +02:00
Raul Ochoa
e3246c41eb Stubs next version 2017-03-30 17:55:21 +02:00
Raul Ochoa
bceb9e8b91 Release 1.44.0 2017-03-30 17:54:49 +02:00
Raul Ochoa
0e984ed3d4 Update news and bump version 2017-03-30 17:53:58 +02:00
Raul Ochoa
220a0d805c Merge pull request #414 from CartoDB/active-gc
Make active GC cycles for Node.js >=v6
2017-03-30 17:49:07 +02:00
Raul Ochoa
28af78ba99 Avoid global stats client 2017-03-30 17:32:22 +02:00
Raul Ochoa
57d7ec3048 Make active GC cycles for Node.js >=v6 2017-03-30 16:27:34 +02:00
Raul Ochoa
db9bfacf07 Extract stats client creation 2017-03-30 16:13:17 +02:00
Daniel García Aubert
6592435e87 Use COUNT option for scan command 2017-03-29 20:40:40 +02:00