Use Push Queues Stay organized with collections Save and categorize content based on your preferences.
This page provides an overview of push queues. Push queues run tasks bydispatching HTTP requests to App Engine worker services. The requests aredelivered at a constant rate. If a task fails, the service retries the task,sending another request. You must provide a handler for every kind of task youuse. A single service can have multiple handlers for different kinds of tasks, oryou can use different services to manage different task types.
The task deadline
When a worker service receives a push task request, it must handle the requestand send an HTTP response before a deadline that depends on thescalingtypeof the worker service.
Automatic scaling services must finish before 10 minutes have elapsed.Manual and basic scaling services can run up to 24 hours.
An HTTP response code between 200–299 indicates success; all other valuesindicate the task failed. If the task fails to respond within the deadline, orreturns an invalid response value, the task is retried.
Retrying a failed task
If a push task request handler returns an HTTP status code outside the range200–299, or fails to return any response before the task deadline occurs, the queueretries the task until it succeeds. The system backs off gradually toavoid flooding your application with too many requests, but schedules retryattempts for failed tasks to recur at a minimum of once per hour.
Working with push queues
When working with push queues, at a minimum, you'll need to do the following things:
- Create tasksprogrammaticallyand add them to the default push queue, or to one or more named push queues thatyou have created.
- Write ahandlerthat processes a task's request, and assign the handler to an App Engineservice.
Optionally, you can also:
- Create and customize multiplequeuesto perform multiple tasks efficiently.
- Monitor and manage your push queues in the Google Cloud console.
When you use push queues, your application is subject to additionalquotas.
What's next
- Learn how tocreate push queues.
- Learn how tocreate tasks.
- Learn aboutwriting handlers.
- Look at anexample.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.