                                        (-> config
                                            :quartz
                                            :interval-in-seconds)))))]
+      (.putAll (.getContext scheduler)
+               {"db" db
+                "perform-action" perform-action
+                "utils" utils})
       (qs/schedule scheduler job trigger)
       (assoc component :scheduler scheduler)))
 

(j/defjob UpdateActionsJob [ctx]
  (try
    (timbre/info "Running UpdateActions job")
    (let [data (into {} (.getMergedJobDataMap ctx))]
      (update-all-actions (data "db") (data "perform-action") (data "utils")))
    (catch Exception e
      (timbre/error e "Error while executing UpdateActionsJob"))))



(comment

  (def worker (-> (map->Worker {:config (hatnik.config/get-config)})
                  component/start))

  (component/stop worker)

