Stay organized with collections
Save and categorize content based on your preferences.
This page describes some limitations with using the local development server
(dev_appserver) to test push queues in your application. In most
respects, you set up your queues and tasks just as you would to run them in the
App Engine production environment, but there are some differences:
The development server doesn't respect the rate and bucket-size attributes
of your queues. As a result, tasks are executed as close to their ETA as
possible. Setting a rate of 0 doesn't prevent tasks from being executed
automatically.
The development server doesn't preserve queue state across restarts.
To prevent push tasks from running in the development server at all, use the
following command:
python2 DEVAPPSERVER_ROOT/google_appengine/dev_appserver.py --enable_task_running no
Replace DEVAPPSERVER_ROOT with the path to the folder where you
extract the archived version of devapp_server.py. For more information about
downloading and using the archived version of dev_appserver.py, see Using the local development server.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This API is compatible with first-generation runtimes and can be used when upgrading to the corresponding second-generation runtimes, with a specific migration guide available for those updating to App Engine PHP 7/8."],["The local development server (`dev_appserver`) has limitations, notably not respecting the `rate` and `bucket-size` attributes of queues, leading to tasks running close to their ETA without considering set rates."],["The local development server's queue state is not saved across restarts."],["Before running the local development server, specific setup steps must be followed, including using Python 3 for `dev_appserver.py` and setting the `CLOUDSDK_DEVAPPSERVER_PYTHON` environment variable to the Python 2 interpreter's path."],["To prevent push tasks from running in the development server, use the command `python2 DEVAPPSERVER_ROOT/google_appengine/dev_appserver.py --enable_task_running no`, replacing `DEVAPPSERVER_ROOT` with the appropriate path."]]],[]]