                                     (keys)
                                     (set)))
 
-(defrecord JobExecutionContext [project-dir state]
+(defrecord ^{:no-doc true} JobExecutionContext [project-dir state]
 
   sm/Stateful
   (current-state [^JobExecutionContext this] (:state this))

(ns fhofherr.simple.core.job-execution-context
  (:require [fhofherr.simple.core.status-model :as sm]))

(def ^:private state-transitions {::created #{::executing}

    (as-> (sm/current-state this) $
          (get state-transitions $)
          (contains? $ next-state))))

(alter-meta! #'->JobExecutionContext assoc :no-doc true)
(alter-meta! #'map->JobExecutionContext assoc :no-doc true)

(defn job-execution-context?
  "Check if the given object `obj` is a job execution context."
