Skip to content

Instantly share code, notes, and snippets.

@pingles
Created March 30, 2015 11:13
Show Gist options
  • Save pingles/5922c412f392574bc9a8 to your computer and use it in GitHub Desktop.
Save pingles/5922c412f392574bc9a8 to your computer and use it in GitHub Desktop.
(defn download-report [client date]
(try
;; snip
(catch Exception e
(Thread/sleep 10000)
(download-report client date))))
(defn upload-to-s3 [file]
(try
;; snip
(catch Exception e
(Thread/sleep 10000)
(upload-to-s3 file))))
(defn -main []
(doseq [[date client] requests]
(let [file (download-report client date)]
(upload-to-s3 file))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment