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 second-generation runtimes, with a migration guide available for App Engine Go 1.12+ runtimes."],["The local development server (`dev_appserver`) behaves similarly to the App Engine production environment for setting up queues and tasks but has some limitations."],["The `dev_appserver` ignores the `rate` and `bucket-size` attributes, causing tasks to execute close to their ETA, and does not maintain queue state across restarts."],["To completely prevent push tasks from running on the development server, use the command `python2 \u003cvar translate=\"no\"\u003eDEVAPPSERVER_ROOT\u003c/var\u003e/google_appengine/dev_appserver.py --enable_task_running no`."],["Before running the local development server, you must follow setup instructions, run `dev_appserver.py` with Python 3, and set the `CLOUDSDK_DEVAPPSERVER_PYTHON` environment variable to the path of your Python 2 interpreter."]]],[]]