Task scheduling in AppEngine dev_appserver.py

I have an application for the [python] AppEngine application that creates several tasks and adds them to a custom task queue. dev_appserver.py seems to ignore the speed / scheduling options that I specify in queue.yaml and immediately does all the tasks. This is a problem [at least for dev / testing purposes], since my tasks call a throttled url; the immediate execution of all tasks violates the throttling restrictions and returns me a bunch of errors.

Does anyone know if task scheduling if dev_appserver.py is disabled? I can not find anything that suggests this in the AppEngine docs. Can anyone suggest a workaround?

Thank.

+5
source share
3 answers

When your application is running on the development server, tasks are automatically performed at the appropriate time, as well as during production .
You can check and manage tasks from the developer console: http: // localhost: 8080 / _ah / admin / taskqueue

Documentation here

+4
source

The documentation is that the development server does not support speed limits. (This is documented for the Java dev server, but not for Python). You can demonstrate this by suspending the queue by specifying 0 / s for it, but you will still be doing the tasks. When such an application is loaded into production, it behaves as expected.

.

+1

Rate TaskQueue. , , :

rate: 10/s
bucket_size: 20

20/. - :

max_concurrent_requests: 1

1 .

. , , , .

_
Task

0

All Articles