                                     [triggers :as triggers])
             [clojurewerkz.quartzite.schedule.cron :as cron]
             [clj-time.core :as time]
+            [clj-time.predicates :as timepr]
             [metabase.db :as db]
             [metabase.driver :as driver]
             [metabase.email :as email]

(defonce ^:private send-pulses-job (atom nil))
(defonce ^:private send-pulses-trigger (atom nil))

;; triggers the sending of all pulses which are scheduled to run in the current hour
(jobs/defjob SendPulses
  [ctx]

        curr-hour          (time/hour now)
        curr-weekday       (->> (time/day-of-week now)
                                (get pulse-channel/days-of-week)
                                :id)
        curr-monthday      (monthday now)
        curr-monthweek     (monthweek now)]
    (send-pulses curr-hour curr-weekday curr-monthday curr-monthweek)))

(defn- task-init []
  ;; build our job
