HttpRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The task will be pushed to the worker as an HTTP request. If the
worker or the redirected worker acknowledges the task by returning a
successful HTTP response code ([
299]), the task will
be removed from the queue. If any other HTTP response code is
returned or no response is received, the task will be retried
according to the following:
User-specified throttling: [retry configuration][google.cloud.tasks.v2.Queue.retry_config], [rate limits][google.cloud.tasks.v2.Queue.rate_limits], and the [queue's state][google.cloud.tasks.v2.Queue.state].
System throttling: To prevent the worker from overloading, Cloud Tasks may temporarily reduce the queue's effective rate. User-specified settings will not be changed.
System throttling happens because:
Cloud Tasks backs off on all errors. Normally the backoff specified in [rate limits][google.cloud.tasks.v2.Queue.rate_limits] will be used. But if the worker returns
429(Too Many Requests),
503(Service Unavailable), or the rate of errors is high, Cloud Tasks will use a higher backoff rate. The retry specified in the
Retry-AfterHTTP response header is considered.
To prevent traffic spikes and to smooth sudden increases in traffic, dispatches ramp up slowly when the queue is newly created or idle and if large numbers of tasks suddenly become available to dispatch (due to spikes in create task rates, the queue being unpaused, or many tasks that are scheduled at the same time).
This message has
oneof_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
Required. The full url path that the request will be sent to. This string must begin with either "http://" or "https://". Some examples are:
The HTTP method to use for the request. The default is POST.
HTTP request headers. This map contains the header field names and values. Headers can be set when the [task is created][google.cloud.tasks.v2beta3.CloudTasks.CreateTask]. These headers represent a subset of the headers that will accompany the task's HTTP request. Some HTTP request headers will be ignored or replaced. A partial list of headers that will be ignored or replaced is: - Host: This will be computed by Cloud Tasks and derived from HttpRequest.url. - Content-Length: This will be computed by Cloud Tasks. - User-Agent: This will be set to
HTTP request body. A request body is allowed only if the [HTTP method][google.cloud.tasks.v2.HttpRequest.http_method] is POST, PUT, or PATCH. It is an error to set body on a task with an incompatible HttpMethod.
If specified, an `OAuth token
If specified, an
Inheritancebuiltins.object > proto.message.Message > HttpRequest
HeadersEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The abstract base class for a message.
Keys and values corresponding to the fields of the message.
A dictionary or message to be used to determine the values for this message.
If True, do not raise errors for unknown fields. Only applied if