cluster.pendingTasks

edit
client.cluster.pendingTasks({
  local: boolean,
  master_timeout: string
})

Reference

local

boolean - Return local information, do not retrieve the state from master node (default: false)

master_timeout or masterTimeout

string - Specify timeout for connection to master