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

(defmethod action :aggregate
  [_ eid params get-toolinfo template]
  (let [exp (cmn/get-exp-info eid :exp)
        {:keys [user cmd action rep compfile]} params
        recipient (pams/get-params [:email (keyword user)])]
    (htts/run-aggregation
     eid recipient compfile get-toolinfo template)))

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

