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