Created
March 30, 2015 11:13
-
-
Save pingles/5922c412f392574bc9a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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