   (:require [clojurewerkz.quartzite.scheduler :as qs]
             [clojurewerkz.quartzite.triggers :as t]
             [clojurewerkz.quartzite.jobs :as jobs]
-            [clojurewerkz.quartzite.jobs :refer [defjob]]
+            [clojurewerkz.quartzite.stateful :refer [def-stateful-job]]
             [clojurewerkz.quartzite.schedule.calendar-interval :refer [schedule with-interval-in-seconds]]
             [clojurewerkz.quartzite.conversion :as c]
             [cmr.metadata-db.db-holder :as db-holder]

    (System/setProperty "org.quartz.dataSource.myDS.password" password)))


(defjob ExpiredConceptCleanupJob
  [ctx]
  (info "Executing expired concepts cleanup.")
  (try

  (qs/initialize)
  (qs/start)
  ;; We delete exiting job and recreate it
  (when (qs/get-job job-key)
    (qs/delete-job (jobs/key job-key)))
  (let [job (jobs/build
              (jobs/of-type ExpiredConceptCleanupJob)
