 #_(->> (cmn/exp-ids) (map #(cmn/get-exp-info % :stats)))
 (defmethod action :rerun
   [_ eid params get-toolinfo template]
-  (let [{:keys [user cmd action rep compfile]} params
-        rep (if rep :rep nil)
+  (let [{:keys [user cmd phase modifier compfile]} params
+        rep (if modifier :rep nil)
         outdir (cmn/get-exp-info eid :out)
 
         exp (cmn/get-exp-info eid :exp)

    (cmn/launch-action
     eid user
     get-toolinfo template
     :action action
     :rep rep
     :compfile compfile)))



(defmethod action :run
  [_ eid params get-toolinfo template]
  (let [{:keys [user cmd phase modifier compfile]} params
        rep (if modifier :rep nil)
        exp (cmn/get-exp-info eid :exp)
        user (get-mail-recipient user)]
    (cmn/launch-action
     eid user
     get-toolinfo template
     :action phase
     :rep rep
     :compfile compfile)))

