     (System/setProperty "org.quartz.dataSource.myDS.password" password)))
 
 
-(defjob ExpiredConceptCleanupJob
+(def-stateful-job ExpiredConceptCleanupJob
   [ctx]
   (info "Executing expired concepts cleanup.")
   (try

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

  (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)
