CloudArchive and CloudModel complete (enough)

- CloudModel is actually classed correctly
 - Minify JSON prior to uploading
 - Change archive update interval to 24h (30* ..20MB = 600/1000MB)
 - Store latest revision url for archive/model after persisting

TODO:
 - Add INITIAL_CORPUS_FILE config var
 - Look for Cloudinary API call to get filesize w/o DLing
 - Logic for jsonify(INTIIAL_CORPUS_FILE) v. using persisted archive
 - Add fetch/persist/etc methods to Ebooks::Archive/Model for fallback
 - Test it? Or just share it and pray.
This commit is contained in:
Joel McCoy
2015-02-11 23:41:26 -05:00
parent 4151957c21
commit 8a26f1108f
4 changed files with 90 additions and 52 deletions

View File

@@ -17,4 +17,4 @@ TIMELINE_DELAY=10..600
TIMEOUT_SLEEP=5
MAX_ERROR_RETRIES=10
UPDATE_FOLLOWS_INTERVAL=90m
UPDATE_ARCHIVE_INTERVAL=8h
UPDATE_ARCHIVE_INTERVAL=24h