                                       :resource/amount (double gpus)}]))])
         commit-latch-id (d/tempid :db.part/user)
         commit-latch {:db/id commit-latch-id
-                      :commit-latch/uuid (java.util.UUID/randomUUID)
+                      :commit-latch/uuid (UUID/randomUUID)
                       :commit-latch/committed? true}
         txn {:db/id db-id
              :job/commit-latch commit-latch-id
              :job/uuid uuid
-             :job/submit-time (java.util.Date.)
+             :job/submit-time (Date.)
              :job/name (or name "cookjob") ; set the default job name if not provided.
              :job/command command
              :job/custom-executor false

  [host executor-state]
  (str "http://" host ":5051"
       "/files/read.json?path="
       (java.net.URLEncoder/encode (get executor-state "directory") "UTF-8")))

(defn fetch-job-map
  [db fid job-uuid]

            [mesomatic.scheduler]
            [metatransaction.core :refer (db)]
            [metrics.timers :as timers]
            [plumbing.core :refer [map-from-vals map-keys map-vals mapply]]
            [ring.middleware.json]
            [schema.core :as s]
            [swiss.arrows :refer :all])
  (:import java.net.URLEncoder
           (java.util Date UUID)
           schema.core.OptionalKey))

;; This is necessary to prevent a user from requesting a uid:gid
;; pair other than their own (for example, root)
