We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3db5623 commit 59b00d7Copy full SHA for 59b00d7
package/server/imports/operator/queue/index.js
@@ -49,11 +49,17 @@ queue.prototype.trigger = function () {
49
var self = this;
50
51
if (self.available === true && self.interval) {
52
- self.available = false;
+ try {
53
+ self.available = false;
54
- if (dominator.isActive()) {
55
- self.run()
56
- } else {
+ if (dominator.isActive()) {
+ self.run()
57
+ } else {
58
+ self.available = true;
59
+ }
60
+ } catch(e) {
61
+ console.error(e);
62
+ } finally {
63
self.available = true;
64
}
65
@@ -114,4 +120,4 @@ queue.prototype.run = function () {
114
120
115
121
116
122
117
-export { queue }
123
+export { queue }
0 commit comments