             [clojure.string :as str]
             [clojure.tools.logging :as log]
             [clojure.walk :as walk]
+            [cook.cached-queries :as cached-queries]
             [cook.config :as config]
             [cook.kubernetes.metrics :as metrics]
-            [cook.pool :as pool]
             [cook.regexp-tools :as regexp-tools]
             [cook.scheduler.constraints :as constraints]
             [cook.task :as task]

        {:keys [docker volumes]} container
        {:keys [image parameters port-mapping]} docker
        {:keys [environment]} command
        pool-name (some-> job :job/pool :pool/name)
        ; gpu count is not stored in scalar-requests because Fenzo does not handle gpus in binpacking
        gpus (or (:gpus resources) 0)
        gpu-model-requested (constraints/job->gpu-model-requested gpus job pool-name)

        progress-env (task/build-executor-environment job)
        checkpoint-env (checkpoint->env checkpoint)
        metadata-env {"COOK_COMPUTE_CLUSTER_NAME" compute-cluster-name
                      "COOK_POOL" pool-name
                      "COOK_SCHEDULER_REST_URL" (config/scheduler-rest-url)}
        main-env-base (merge environment params-env progress-env sandbox-env checkpoint-env metadata-env)
        progress-file-var (get main-env-base task/progress-meta-env-name task/default-progress-env-name)
