google-cloud-tasks

How to override the retry configuration for Google Cloud Tasks Node.js Client

萝らか妹 提交于 2019-12-25 01:33:41
问题 I've been trying explore if there's a way to retry the createTask function. The reason being is because I keep on encountering deadline exceeded error from time to time like so: Error: 4 DEADLINE_EXCEEDED: Deadline Exceeded at Object.exports.createStatusError (/srv/node_modules/grpc/src/common.js:91:15) at Object.onReceiveStatus (/srv/node_modules/grpc/src/client_interceptors.js:1204:28) at InterceptingListener._callNext (/srv/node_modules/grpc/src/client_interceptors.js:568:42) at

argument --max-dispatches-per-second: invalid float value: '6/m'

天涯浪子 提交于 2019-12-13 03:44:18
问题 I am using cloud tasks , I want to set maxDispatchesPerSecond to 6/m . when I try to update my app engine queue with below command: ☁ rate-limit [master] ⚡ gcloud beta tasks queues update-app-engine-queue cloud-tasks-rate-limit --max-dispatches-per-second='6/m' ERROR: (gcloud.beta.tasks.queues.update-app-engine-queue) argument --max-dispatches-per-second: invalid float value: '6/m' Usage: gcloud beta tasks queues update-app-engine-queue QUEUE [optional flags] optional flags may be --clear-max

Rapidly creating cloud tasks using Cloud Task, Cloud Functions, and GAE

自古美人都是妖i 提交于 2019-12-11 15:51:36
问题 I'm using App Engine to trigger the creation of multiple Cloud Tasks based on items in a list: function_url="https://us-central1-myproject.cloudfunctions.net/some-cloud-function" someTasks = [ {'id': 'task-1'}, {'id': 'task-2'}, {'id': 'task-3'}, ... {'id': 'task-1000'}, ] The tasks are currently created using: Parallel(backend='threading', n_jobs=100)( delayed(create_document_task)(function_url=function_uri, data=task) for task in someTasks ) The above code creates the tasks in parallel and

Google Cloud Tasks always set HttpMethod to GET when using HttpRequest as payload_type

这一生的挚爱 提交于 2019-12-06 06:42:06
问题 According to this documentation [ https://cloud.google.com/tasks/docs/creating-http-target-tasks ], one should be able to create tasks with type 'http_request' and 'http_method' set to 'POST', but the behavior is not the expected once the task is always created with method 'GET'. After having this issue while using the Python Client Library, I've decided to try the API directly and check if it was an issue with the library or with the API itself. Using the "Try this API" from the product's

Google Cloud Tasks always set HttpMethod to GET when using HttpRequest as payload_type

戏子无情 提交于 2019-12-04 15:11:34
According to this documentation [ https://cloud.google.com/tasks/docs/creating-http-target-tasks ], one should be able to create tasks with type 'http_request' and 'http_method' set to 'POST', but the behavior is not the expected once the task is always created with method 'GET'. After having this issue while using the Python Client Library, I've decided to try the API directly and check if it was an issue with the library or with the API itself. Using the "Try this API" from the product's documentation page [ https://cloud.google.com/tasks/docs/reference/rest/v2beta3/projects.locations.queues

Cloud Tasks API set retry at Task level

安稳与你 提交于 2019-12-02 10:28:19
问题 I have read the Cloud Tasks API documentation to manage the execution of large numbers of distributed requests. But I can't find anything in documentation which enables the retry for any specific task only. The request body to create tasks using Cloud Tasks API is: { "responseView": "", "task": { "appEngineHttpRequest": { "appEngineRouting": {}, "body": "", "headers": {}, "httpMethod": "", "relativeUri": "" } } } There is no retry parameter which can be set in this request body. However,

Cloud Tasks API set retry at Task level

一世执手 提交于 2019-12-02 07:26:43
I have read the Cloud Tasks API documentation to manage the execution of large numbers of distributed requests. But I can't find anything in documentation which enables the retry for any specific task only. The request body to create tasks using Cloud Tasks API is: { "responseView": "", "task": { "appEngineHttpRequest": { "appEngineRouting": {}, "body": "", "headers": {}, "httpMethod": "", "relativeUri": "" } } } There is no retry parameter which can be set in this request body. However, there is retryConfig available while creating a queue using Cloud Tasks API, but the problem with that is