Questions tagged [google-cloud-tasks]
262 questions
3
votes
1 answer
Google Cloud Tasks requeue task after 5 minutes ignoring greater dispatchDeadline setting
Infrastructure: Firebase function that queues Google Cloud Task items and local NodeJS Express app that executes some long-running job. For debugging purposes I am using ngrok to tunnel task to my local app
GC Tasks docs state that the default…

Yehor Androsov
- 4,885
- 2
- 23
- 40
3
votes
1 answer
Getting Error TypeError: create_task() takes from 1 to 2 positional arguments but 3 were given while creating google cloud tasks
from google.cloud import tasks_v2
import json
GCP_PROJECT='test'
GCP_LOCATION='europe-west6'
def enqueue_task(queue_name, payload, process_url):
client = tasks_v2.CloudTasksClient()
parent = client.queue_path(GCP_PROJECT, GCP_LOCATION,…

Avin
- 33
- 6
3
votes
2 answers
GCP Cloud Tasks: shorten period for creating a previously created named task
We are developing a GCP Cloud Task based queue process that sends a status email whenever a particular Firestore doc write-trigger fires. The reason we use Cloud Tasks is so a delay can be created (using scheduledTime property 2-min in the future)…

Gatmando
- 2,179
- 3
- 29
- 56
3
votes
2 answers
creating Google Cloud Task in a firebase function
I'm getting an error in the firebase console functions log when calling a firebase HTTP function that tries to create a task.
Error: 7 PERMISSION_DENIED: The principal (user or service account) lacks IAM permission "cloudtasks.tasks.create" for the…

Andrew Stromme
- 2,120
- 23
- 30
3
votes
2 answers
Google task queue not in us-west1
My gcloud tools default to us-west1 but when I create a queue and try to use via java and apis, I get this error
"Location 'us-west1' is not a valid location. Use ListLocations to list valid locations.",
and when I try to list locations like it…

Dean Hiller
- 19,235
- 25
- 129
- 212
3
votes
1 answer
How do I verify a Google Cloud Task token from an HTTP request?
I am trying to implement Google Cloud Task queues with a HTTP Target. I've used the queues for App Engine but in moving to Cloud Run I wish to use the same queue system. I have implemented the dispatcher code but unlike App Engine I can't trust the…

Peter Fox
- 1,809
- 2
- 20
- 34
3
votes
1 answer
Cloud Tasks + Cloud Functions - duplicate executions
I'm using Google Cloud Tasks and Cloud Functions together to execute a lot of tasks in parallel.
The Cloud Function is deployed with an HTTP trigger.
I'm creating multiple HTTP target tasks, in one queue, to call the same Cloud Function for several…

favq
- 739
- 1
- 11
- 25
3
votes
3 answers
"Google Cloud Tasks", performance of task creation
I have "Google cloud function" in region europe-west1 (Belgium) which creates tasks in "Google cloud task queue" located in europe-west3 (Germany). It's similar to tutorial: https://cloud.google.com/tasks/docs/tutorial-gcf
It takes about 1-2 seconds…

Vincente
- 341
- 3
- 13
3
votes
1 answer
Google Cloud Tasks HTTP trigger - how to disable retry
I'm trying to create a Cloud Tasks queue that never retries if an HTTP task fails.
According to the documentation, maxAttempts should be what I'm looking for:
Number of attempts per task.
Cloud Tasks will attempt the task maxAttempts times (that…

favq
- 739
- 1
- 11
- 25
3
votes
2 answers
One Instance-One Request at a time App Engine Flexible
I am using
App Engine Flexible, custom runtime.
nodejs, as base Image.
express
Cloud Tasks for queuing the requests
puppeteer job
My Requirements
20GB RAM
long-running process
because of my unique requirement, I want 1 request to be handled by…

Sanyam Jain
- 2,925
- 2
- 23
- 30
3
votes
4 answers
How to edit Google Cloud task's default timeout (with http target, not app engine)?
I'm using this package to add Google Cloud tasks to my project and it works perfectly. The problem is that I can't figure out how to increase http target request timeout?

abderrahman turki
- 119
- 1
- 6
2
votes
2 answers
Can't set timeout longer than 30s for Google Cloud/App Engine tasks
I have a task I am running with Google App Engine/Cloud Tasks (as documented here) which uses Python 3.7 and could in some cases take up to a few hours to complete.
As such, I am trying to extend the default timeout length for the task.
Consulting…

element119
- 7,475
- 8
- 51
- 74
2
votes
0 answers
How to execute workflow from gcp cloud tasks
Im trying to execute a workflow from cloud tasks but getting immediately 401 error.
Here is the code to enqueue the task:
req := &taskspb.CreateTaskRequest{
Parent: fmt.Sprintf("projects/%v/locations/us-central1/queues/myqueue", projectID),
…

Raz Omessi
- 1,812
- 1
- 14
- 13
2
votes
1 answer
Google Cloud Tasks: How to update a tasks time to live?
Description:
I have created a Firebase app where a user can insert a Firestore document. When this document is created a timestamp is added so that it can be automatically deleted after x amount of time, by a cloud function.
After the document is…

GRos
- 21
- 2
2
votes
0 answers
NOT_FOUND(5): Instance Unavailable. HTTP status code 404
I got this error when task is trying processing.
This is my nodejs code
async function quickstart(message : any) {
// TODO(developer): Uncomment these lines and replace with your values.
const project = "";//projectid
const queue =…

scarlet pro
- 181
- 12