                   onyx.core/triggers onyx.core/windows onyx.core/task-map onyx.core/window-state 
                   onyx.core/state-log onyx.core/results]} event
           grouping-fn (:grouping-fn compiled)
+          uniqueness-check? (contains? task-map :onyx/uniqueness-key)
           id-key (:onyx/uniqueness-key task-map)] 
       (doall
         (map 

                      (doseq [t triggers]
                        (triggers/fire-trigger! event window-state t {:segment segment :context :new-segment})))
                    ;; Always update the filter, to freshen up the fact that the id has been re-seen
                    (when unique-id 
                      (swap! window-state update :filter state-extensions/apply-filter-id event unique-id))))
                (:leaves leaf))))
          (:tree results)

              (run! 
                (fn [message]
                  (let [segment (:message message)
                        unique-id (if uniqueness-check? (get segment id-key))]
                    (when-not (and uniqueness-check? (state-extensions/filter? (:filter @window-state) event unique-id))
                      (inc-count! fused-ack)
                      (let [[new-window-state full-log-entry] 
                            (reduce (fn [[window-state log-entries] window]
