abhishekagarwal87 commented on code in PR #13305:
URL: https://github.com/apache/druid/pull/13305#discussion_r1014605161
##########
extensions-contrib/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/KubernetesTaskRunner.java:
##########
@@ -494,20 +505,28 @@ public RunnerTaskState getRunnerTaskState(String taskId)
}
}
- public class K8sWorkItem extends TaskRunnerWorkItem
+ public static class K8sWorkItem extends TaskRunnerWorkItem
{
private final Task task;
+ private KubernetesPeonClient client;
- private K8sWorkItem(Task task, ListenableFuture<TaskStatus> statusFuture)
+ public K8sWorkItem(KubernetesPeonClient client, Task task,
ListenableFuture<TaskStatus> statusFuture)
{
super(task.getId(), statusFuture);
this.task = task;
+ this.client = client;
}
- private K8sWorkItem(Task task, ListenableFuture<TaskStatus> statusFuture,
DateTime createdTime)
+ public K8sWorkItem(
+ KubernetesPeonClient client,
+ Task task,
+ ListenableFuture<TaskStatus> statusFuture,
+ DateTime createdTime
+ )
{
super(task.getId(), statusFuture, createdTime, createdTime);
this.task = task;
+ this.client = client;
Review Comment:
where does it get accessed?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]