Skip to content

Commit

Permalink
fix: In memory queue driver drop state if rollups are building too long
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Sep 6, 2019
1 parent 0beb711 commit ad4c062
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const store = {};

class LocalCacheDriver {
constructor() {
this.store = {};
this.store = store;
}

async get(key) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,23 @@ class LocalQueueDriverConnection {
}
}

const results = {};
const resultPromises = {};
const queryDef = {};
const toProcess = {};
const recent = {};
const active = {};

class LocalQueueDriver extends BaseQueueDriver {
constructor(options) {
super();
this.options = options;
this.results = {};
this.resultPromises = {};
this.queryDef = {};
this.toProcess = {};
this.recent = {};
this.active = {};
this.results = results;
this.resultPromises = resultPromises;
this.queryDef = queryDef;
this.toProcess = toProcess;
this.recent = recent;
this.active = active;
}

createConnection() {
Expand Down

0 comments on commit ad4c062

Please sign in to comment.