Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Con el siguiente código, se crea una tarea que se enviará al controlador /worker de la aplicación como una solicitud POST. La tarea contiene los datos de nombre y de acción y la procesará la cola predeterminada:
Además, puedes agregar tareas a una cola de forma masiva con PushQueue. En el siguiente ejemplo, se agregan dos objetos PushTask a PushQueue mediante el método addTasks().
$task1 = new PushTask('/someUrl');$task2 = new PushTask('/someOtherUrl');$queue = new PushQueue();$queue->addTasks([$task1, $task2]);
Cuando uses PushTask y PushQueue, incluye estas instrucciones en la parte superior del archivo PHP:
use google\appengine\api\taskqueue\PushTask;use google\appengine\api\taskqueue\PushQueue;
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-08-19 (UTC)"],[[["\u003cp\u003eThis page provides instructions on using legacy bundled services and APIs, specifically within the first-generation runtimes of the App Engine standard environment.\u003c/p\u003e\n"],["\u003cp\u003eA task can be created and sent as a POST request to a designated handler using the \u003ccode\u003ePushTask\u003c/code\u003e class, including the name and action parameters that will be processed by the default queue.\u003c/p\u003e\n"],["\u003cp\u003eMultiple tasks can be added in bulk to a queue by creating \u003ccode\u003ePushTask\u003c/code\u003e objects and using the \u003ccode\u003eaddTasks()\u003c/code\u003e method within the \u003ccode\u003ePushQueue\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize the \u003ccode\u003ePushTask\u003c/code\u003e and \u003ccode\u003ePushQueue\u003c/code\u003e classes, you must include specific \u003ccode\u003euse\u003c/code\u003e statements at the beginning of your PHP file.\u003c/p\u003e\n"]]],[],null,[]]