                  :bucket-name "polis-datadump"
                  :key (full-aws-path filename)
                  :file (full-path filename)))
-
-(defn notify-mongo
-  [filename status params]
-  (update-export-status filename {:status status :params params}))
 
 (defn handle-completion!
   [aws-cred filename params]

            [bidi.bidi :as bidi]
            [bidi.ring]))

;(ns-unalias *ns* 'env)

(def tmp-dir "/tmp/")
(defn full-path [filename] (str tmp-dir filename))

  )


;; TODO / Thoughts

;; Mmm... how to delete pending submissions that get canceled due to a server restart? maybe we keep track of
;; a global of what processing are running and for which exports, and look at that when we get a status
;; request

;; Auto retry conversations that somehow fail based on heart beat?

;; Require zinvite from ser request for downloaded conv, so that it's easier to secure

;; Expire entries in mongo; or lifecycle of checking for old mongo reords


