tasks.get

edit
client.tasks.get({
  task_id: string,
  wait_for_completion: boolean
})

Reference

task_id or taskId

string - Return the task with specified id (node_id:task_number)

wait_for_completion or waitForCompletion

boolean - Wait for the matching tasks to complete (default: false)