From e6ebd956f872b4429f1b76528066aeaeb2bd3d06 Mon Sep 17 00:00:00 2001 From: retiefjimm Date: Thu, 10 Mar 2011 14:30:42 -0600 Subject: [PATCH] Datastore max size is 1,000,000, not 1M(=2^20). --- app.yaml | 2 +- main.py | 4 ++-- queue.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app.yaml b/app.yaml index 9c55df4..0b45fd0 100644 --- a/app.yaml +++ b/app.yaml @@ -1,5 +1,5 @@ application: fanfictionloader -version: 2-6-beta +version: 3-0-alpha runtime: python api_version: 1 diff --git a/main.py b/main.py index 85d5f93..5c0563d 100644 --- a/main.py +++ b/main.py @@ -345,9 +345,9 @@ class FanfictionDownloaderTask(webapp.RequestHandler): while( len(data) > 0 ): DownloadData(download=download, index=index, - blob=data[:1024*1000]).put() + blob=data[:1000000]).put() index += 1 - data = data[1024*1000:] + data = data[1000000:] download.completed=True download.put() diff --git a/queue.yaml b/queue.yaml index 2acafa2..77c4e83 100644 --- a/queue.yaml +++ b/queue.yaml @@ -4,4 +4,4 @@ queue: - name: download rate: 10/s retry_parameters: - task_retry_limit: 3 + task_retry_limit: 2