Questions tagged [google-cloud-tasks]
262 questions
4
votes
2 answers
PERMISSION_DENIED 403 error when triggering HTTP Cloud Function from Cloud Tasks
I'm trying the Using Cloud Tasks to trigger Cloud Functions tutorial but when I try to run the created task I get an error:
Status code: 7 (PERMISSION_DENIED)
Reason for retrying: PERMISSION_DENIED(7): HTTP status code 403
I have created a new…

0tto
- 357
- 3
- 14
4
votes
3 answers
Cloud Task Creation : Error: 3 INVALID_ARGUMENT: Request contains an invalid argument
I'm following thist tutorial : https://cloud.google.com/tasks/docs/tutorial-gcf
To create a Task that would call a cloud function.
I've done quite some tries and still get this error:
If I change the body encoding to something else, I get another…

Thomas
- 1,231
- 14
- 25
4
votes
2 answers
Can you run /host firebase emulator that is accessible from public ip?
I am using the firebase emulator to host some GCF functions on my machine. They are configured to run/host on localhost:5001. This works great.
I am now using Google Tasks in my app, and the task I have needs to call a GCF function. Tasks does not…

mike hennessy
- 1,359
- 1
- 16
- 35
4
votes
2 answers
No logs available for google cloud tasks?
I have a very basic Flask app set up in a Google App Engine:
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello(id):
print("Got this id: {}".format(id))
return "Hello World: {}".format(id)
if __name__ ==…

Preethi Vaidyanathan
- 1,203
- 1
- 12
- 32
4
votes
1 answer
Google Cloud Tasks ImportError: cannot import name 'resource_pb2'
Trying to use the google provided python sample code for adding a task to a Google Cloud Tasks queue. The docs from google are here: https://cloud.google.com/tasks/docs/creating-appengine-tasks
When I attempt to execute the endpoint I get the…

Nathan-NWCC
- 49
- 1
- 5
4
votes
1 answer
Google Cloud Tasks always set HttpMethod to GET when using HttpRequest as payload_type
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…

Michel Nagme
- 257
- 1
- 4
- 10
3
votes
1 answer
Dead letter queue for cloud tasks
Is it possible to create Dead letter queue for cloud tasks (GCP) ?
I am using cloud tasks instead of pub/sub to have control over the concurrent massages send. However, unlike pub/sub, cloud task doesn't seem to use dead letter queue. Is there other…

jelly
- 31
- 3
3
votes
0 answers
Google Cloud Run allows timeout up to 60 minutes, but other services do not
I have a containerized process running in Cloud Run which does some data transformation in a flask app in Python. It takes about 45 minutes to run. No problem, because Cloud Run allows a timeout of anywhere up to 60 minutes. I'm using a HTTP post…

John F
- 994
- 10
- 26
3
votes
0 answers
Cloud Tasks Failing Dispatch with UNKNOWN(2): HTTP status code 0
I am running Cloud Tasks using OIDC authentication to trigger a Cloud Function. While running ~40K queued tasks, I received a number of task failures (noticed by the fact that the Retries counter was incremented) and when I inspected the Previous…

Alex Williams
- 179
- 1
- 8
3
votes
1 answer
Using Google Cloud Tasks with an Emulator
I am attempting local development with Google Cloud Tasks. I am able to enqueue a task to Google Cloud, but I'd like to use an emulator for local development. I have found…

Brian
- 3,571
- 7
- 44
- 70
3
votes
1 answer
Google Cloud Run not scaling up despite large backlog and available instances
I am seeing something similar to this post. It looked like additional detail was needed to answer that question, so I'm re-asking with my details since those details weren't provided.
I am running a modified version of the Google Cloud Run image…

shortcipher3
- 1,292
- 9
- 22
3
votes
1 answer
How i can convert a Celery Task to Google Cloud Task GCP (Django)
Im using Celery + Redis with Django Rest API on my localhost to run a classification task how get data from an Axios post.
and right now im trying to deploy it to google cloud , and i didnt found a clear way to run Redis and Celery on the App Engine…

Ilyes Negadi
- 107
- 2
- 8
3
votes
0 answers
Why does Cloud Tasks gives "Deadline Exceeded" error after 60s?
I'm using google-cloud-tasks==2.2.0 with Flask Gunicorn. This is how I send a task to a queue:
def send_task(payload, queue, uri, *args):
url = f'https://www.mywebsite.com/{uri}'
payload = json.dumps(payload)
payload = payload.encode()
…

Kerem Nayman
- 137
- 1
- 8
3
votes
1 answer
Can't remove appEngineRoutingOverride on Google Cloud Tasks Queue
I can't get my Cloud Tasks queue to stop overriding the app engine service routing. I created the queue through the GCP dashboard, not using queue.yml or anything else.
Description of the queue:
$ gcloud tasks queues describe…

Alex
- 361
- 1
- 4
- 15
3
votes
3 answers
Inspect Google Cloud Task Queue retry parameters from Task
I have created a Cloud Task that has a retry policy with max attempts set to (for example 4).
However, we want the Task to fallback to a default solution if the Task fails for the last time.
That is, if the Task fails on the first time we just log…

Fogmeister
- 76,236
- 42
- 207
- 306