Cluster object that submitted current task
c = getCurrentCluster
The cluster object that scheduled the task currently being evaluated by the worker session.
c = getCurrentCluster returns
that has sent the task currently being evaluated by the worker session.
c is the
the task's parent job.
Find the current cluster.
myCluster = getCurrentCluster;
Get the host on which the cluster is running.
host = myCluster.Host;
If this function is executed in a MATLAB® session that is not a worker, you get an empty result.