Documentation

queue.php

QUEUE calls end-points This feature allows in a very easy way to queue calls to end-points adding /queue at the beginning of the url It uses GCP Task Manager as engine to queue your calls.

More info:

  • https://cloud.google.com/tasks/docs/creating-appengine-tasks
  • https://github.com/GoogleCloudPlatform/php-docs-samples/blob/master/appengine/php72/tasks/snippets/src/create_task.php
  • https://console.developers.google.com/apis/api/cloudtasks.googleapis.com/overview?project={{PROJECT-ID}}

Headers sent by a task:

  • X-CloudTasks-QueueName The name of the queue.
  • X-CloudTasks-TaskName The "short" name of the task, or, if no name was specified at creation, a unique system-generated id. This is the my-task-id value in the complete task name, ie, task_name = projects/my-project-id/locations/my-location/queues/my-queue-id/tasks/my-task-id.
  • X-CloudTasks-TaskRetryCount The number of times this task has been retried. For the first attempt, this value is 0. This number includes attempts where the task failed due to 5XX error codes and never reached the execution phase.
  • X-CloudTasks-TaskExecutionCount The total number of times that the task has received a response from the handler. Since Cloud Tasks deletes the task once a successful response has been received, all previous handler responses were failures. This number does not include failures due to 5XX error codes.
  • X-CloudTasks-TaskETA The schedule time of the task, specified in seconds since January 1st 1970.

Last-update: 2021-01

Tags
type

{RESTFul}

Table of Contents

Classes

API
[$api = $this->core->loadClass('RESTful');] Class CFI to handle APIs. It is been used in Core APIs last_update: 20200502

        
On this page

Search results