public class ClaimWorkResponse.TasksEntry extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ClaimWorkResponse.TasksEntry.Credentials |
| Modifier and Type | Field and Description |
|---|---|
ClaimWorkResponse.TasksEntry.Credentials |
credentials
Temporary credentials granting
task.scopes and the scope: queue:claim-task:<taskId>/<runId> which allows the worker to reclaim the task, upload artifacts and report task resolution. |
int |
runId
run-id assigned to this run of the taskMininum: 0 Maximum: 1000See http://schemas.taskcluster.net/queue/v1/claim-work-response.json#/properties/tasks/items/properties/runId |
TaskStatusStructure |
status
|
Date |
takenUntil
Time at which the run expires and is resolved as
exception, with reason claim-expired if the run haven’t been reclaimed. |
TaskDefinitionResponse |
task
|
String |
workerGroup
Identifier for the worker-group within which this run started.
|
String |
workerId
Identifier for the worker executing this run.
|
| Constructor and Description |
|---|
TasksEntry() |
public ClaimWorkResponse.TasksEntry.Credentials credentials
Temporary credentials granting task.scopes and the scope: queue:claim-task:<taskId>/<runId> which allows the worker to reclaim the task, upload artifacts and report task resolution.
The temporary credentials are set to expire after takenUntil. They won’t expire exactly at takenUntil but shortly after, hence, requests coming close takenUntil won’t have problems even if there is a little clock drift.
Workers should use these credentials when making requests on behalf of a task. This includes requests to create artifacts, reclaiming the task reporting the task completed, failed or exception.
Note, a new set of temporary credentials is issued when the worker reclaims the task.
public int runId
run-id assigned to this run of the task
Mininum: 0 Maximum: 1000
public TaskStatusStructure status
public Date takenUntil
Time at which the run expires and is resolved as exception, with reason claim-expired if the run haven’t been reclaimed.
public TaskDefinitionResponse task
public String workerGroup
Identifier for the worker-group within which this run started.
Syntax: ^([a-zA-Z0-9-_]*)$ Min length: 1 Max length: 22
public String workerId
Identifier for the worker executing this run.
Syntax: ^([a-zA-Z0-9-_]*)$ Min length: 1 Max length: 22
Copyright © 2014–2018 Mozilla. All rights reserved.