Cicode Programming Reference > Cicode Function Categories > Task Functions Introduction > TaskCluster

TaskCluster

Gets the name of the cluster context in which the current task is executing.

Syntax

TaskCluster()

Return Value

The cluster name of the current context or an empty string if the task is executing without a cluster context.

Related Functions

ClusterActivate, ClusterDeactivate, ClusterFirst, ClusterGetName, ClusterIsActive, ClusterNext, ClusterServerTypes, ClusterSetName, ClusterStatus, ClusterSwapActive, TaskNew, TaskNewEx

Example

! Get the cluster context of the current task
sCluster = TaskCluster();

See Also

Task Functions

Cluster Functions

About cluster context