Skip to content

Commit

Permalink
Merge 2717367 into 4674176
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Oct 16, 2019
2 parents 4674176 + 2717367 commit bc20fc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/index.js
Expand Up @@ -397,6 +397,7 @@ class Generator extends EventEmitter {

runAsync(function() {
self.async = () => this.async();
self.runningState = { namespace, queueName, methodName };
return method.apply(self, self.args);
})()
.then(completed)
Expand All @@ -409,6 +410,9 @@ class Generator extends EventEmitter {
self.emit('error', err);
reject(err);
});
})
.finally(function() {
delete self.runningState;
});
});
}
Expand Down

0 comments on commit bc20fc2

Please sign in to comment.