Questions tagged [google-cloud-tasks]
262 questions
15
votes
2 answers
Can't control rate limit on Google Cloud Tasks API
I'm trying to rate limit Google Cloud Tasks to no more than 1 processed task per second.
I've created my queue with:
gcloud tasks queues create my-queue \
--max-dispatches-per-second=1 \
--max-concurrent-dispatches=1 \
…

Samuel Rizzo
- 2,811
- 2
- 20
- 18
10
votes
3 answers
Google Cloud Tasks trigger Cloud Function with INTERNAL only ingress
How can I trigger a Cloud Function from Cloud Tasks when that function has its ingress settings set to "allow internal only"?
With that setting, the function rejects the incoming HTTP traffic from Cloud Tasks. This behavior occurs even if Cloud…

Thomas Ruble
- 842
- 6
- 14
8
votes
1 answer
GCP - Error creating Queue: googleapi: Error 400: The queue cannot be created because a queue with this name existed too recently
I started to work with Cloud Tasks, I am performing some tests so I created and deleted Cloud Tasks queues from the GCP console a couple of times.
Every time I delete a queue and try to recreate it with the same name I get this error:
Error…

Massimo Coluzzi
- 91
- 2
7
votes
1 answer
Cloud Functions / Cloud Tasks UNAUTHENTICATED error
I am trying to get a Cloud Function to create a Cloud Task that will invoke a Cloud Function. Easy.
The flow and use case are very close to the official tutorial here.
I also looked at this article by Doug Stevenson and in particular its security…

Stf_F
- 846
- 9
- 23
7
votes
4 answers
Google Cloud Tasks cannot authenticate to Cloud Run
I am trying to invoke a Cloud Run service using Cloud Tasks as described in the docs here.
I have a running Cloud Run service. If I make the service publicly accessible, it behaves as expected.
I have created a cloud queue and I schedule the cloud…

bartaelterman
- 795
- 10
- 26
6
votes
2 answers
How can I manually specify a X-Cloud-Trace-Context header value to and correlate and trace logs in separate Cloud Run requests?
I'm using Cloud Run and Cloud Tasks to do some async processing of webhooks. When I get a request to my Cloud Run service, I queue up a task in my Cloud Tasks queue and return a response from my service immediately. Cloud Tasks will then trigger my…

muin
- 258
- 3
- 9
5
votes
2 answers
Cloud Tasks Conditional Execution
I am using Cloud Tasks. I need to trigger the execution of Task C only when Task A and Task B have been completed successfully. So I need some way of reading / being notified of the statuses of Tasks triggered. But I see no way of doing this in…

Raj Chaudhary
- 1,444
- 3
- 16
- 31
5
votes
5 answers
How increase maximum schedule time in Gcloud tasks API?
I have problem with google cloud tasks API. I need create task with far schedule time. Maximum schedule time is 30 days. Is possibility to increase that limit or some problem's bypass?

Kamil Kot
- 51
- 1
- 3
5
votes
1 answer
How to secure an app engine app to be available only to Google Cloud Task?
I would like to create a task handler that is supposed to deal with some tasks with retry, etc.
But I want this endpoint to only be triggerable by a specific queue in google task ?
How am I supposed to deal with it ? What is the best practice ?
Best…

ScreamZ
- 581
- 4
- 16
4
votes
0 answers
Google Cloud Queue Tasks resolves with PERMISSION_DENIED(7): HTTP status code 403
I'm using Google Cloud Queue tasks in my project where I'm able to create tasks that are added to my Queue in a scheduled time, but when the tasks are executed it throws: Google PERMISSION_DENIED(7): HTTP status code 403.
Error screenshot
I followed…

Pau Garcia Valero
- 41
- 1
4
votes
1 answer
How to cancel a task enqueued on Firebase Functions?
I'm talking about this: https://firebase.google.com/docs/functions/task-functions
I want to enqueue tasks with the scheduleTime parameter to run in the future, but I must be able to cancel those tasks.
I expected it would be possible to do something…

gustavopch
- 796
- 9
- 16
4
votes
1 answer
Cloud Run: 429: The request was aborted because there was no available instance
We (as a company) experience large spikes every day. We use Pub/Sub -> Cloud Run combination.
The issue we experience is that when high traffic hits, Pub/Sub tries to push messages to Cloud/Run all at the same time without any flow control. The…

Michal Moravik
- 1,213
- 1
- 12
- 23
4
votes
2 answers
ImportError: cannot import name 'tasks_v2' from 'google.cloud'
I'm trying to use the Google Cloud Tasks code sample provided in the GCP documentation here:
https://cloud.google.com/tasks/docs/creating-http-target-tasks (see code below). However, it's unclear from the documentation which package I need for this…

fpersyn
- 1,045
- 1
- 12
- 19
4
votes
3 answers
Google Cloud Platform: Cloud Functions and Cloud Tasks doesn't work with authorized service account email
I created a service account email and added cloudfunctions.invoker role to the email so I can make sure only cloud tasks can trigger cloud functions, and I removed AllUsers role. But when cloud tasks tried to run cloud function, the status code is…

Ooto
- 1,117
- 16
- 39
4
votes
2 answers
Get a Cloud Function name from the Cloud Function itself
When sending SMS to Twilio, Twilio sends several requests to a specified URL to give a status of that SMS delivery through webhooks. I want to make this callback asynchronous, so I developed a Cloud Function that sends a representation of the…

Alain Tiemblo
- 36,099
- 17
- 121
- 153