aboutsummaryrefslogtreecommitdiff
path: root/src/com/github/ivarref/yoltq/poller.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/github/ivarref/yoltq/poller.clj')
-rw-r--r--src/com/github/ivarref/yoltq/poller.clj8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/github/ivarref/yoltq/poller.clj b/src/com/github/ivarref/yoltq/poller.clj
index 1f4e65d..28b158f 100644
--- a/src/com/github/ivarref/yoltq/poller.clj
+++ b/src/com/github/ivarref/yoltq/poller.clj
@@ -10,9 +10,11 @@
:error (u/get-error cfg q)
:hung (u/get-hung cfg q))]
(with-bindings (get item :bindings {})
- (some->> item
- (i/take! cfg)
- (i/execute! cfg)))))
+ (if (i/depends-on-waiting? cfg item)
+ nil
+ (some->> item
+ (i/take! cfg)
+ (i/execute! cfg))))))
(defn poll-queue! [running?