Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Batch - Understanding task_id string

I am viewing logs for a batch job with 10 tasks. I have the following query:

```

my-job-uuid logName="projects/my-project/logs/batch_task_logs"
resource.labels.task_id="task/my-job-uuid-group0-10/0/0"
```
 
I am understanding the task_id with the suffix "10/0/0" to describe task 10. 
What does the task_id with the suffix "10/1/0" describe? 
Is this the second retry?
Solved Solved
0 1 198
1 ACCEPTED SOLUTION

@jacksonwb  At the moment,  10 would be task id, 1 would be execution id (different value for each retry), and the last component is always 0 in your example ("10/1/0").  We don't recommend you reply on the exact format as it is subject to change. We are planning to enhance the Cloud Logging entry with additional labels and fields to provide those details in a better way.

View solution in original post

1 REPLY 1

@jacksonwb  At the moment,  10 would be task id, 1 would be execution id (different value for each retry), and the last component is always 0 in your example ("10/1/0").  We don't recommend you reply on the exact format as it is subject to change. We are planning to enhance the Cloud Logging entry with additional labels and fields to provide those details in a better way.