Preethi Vaidyanathan
Preethi Vaidyanathan

Reputation: 1322

How to enable logging for Google Task Queue?

I currently have a task queue with tasks running. This is what my dashboard looks like: enter image description here

When I click on 'View' (under logs on the far right), it takes me to a page that looks like this: enter image description here

I am certain that there should be some logs, considering all of these tasks have been retried multiple times. I am wondering if there is some step I should have taken to enable logging on this queue?

Upvotes: 1

Views: 506

Answers (1)

Pradeep Bhadani
Pradeep Bhadani

Reputation: 4741

You can enable logging by running

gcloud beta tasks queues create [QUEUE_ID] --log-sampling-ratio=1.0

You can read more here.

Hope this helps.

Upvotes: 1

Related Questions