Skip to content

Commit

Permalink
Add TaskId() to ExecuteTask
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed Dec 14, 2023
1 parent 779e7c2 commit 3eab345
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions execute_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ func newGRPCExecuteTask(clnt *ProxyClient, statement *Statement) *ExecuteTask {
}
}

// TaskId returns the task id that was sent to the server.
func (etsk *ExecuteTask) TaskId() uint64 {
return etsk.taskID
}

// IsDone queries all nodes for task completion status.
func (etsk *ExecuteTask) IsDone() (bool, Error) {
if etsk.clnt != nil {
Expand Down

0 comments on commit 3eab345

Please sign in to comment.